Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expand health endpoint #260

Merged
merged 15 commits into from
Dec 10, 2024
Merged

Expand health endpoint #260

merged 15 commits into from
Dec 10, 2024

Conversation

kad-korpem
Copy link
Collaborator

Description

Previously, the /health endpoint would simply respond with an HTTP 200 to indicate the server is up. However, when serving vector tiles, the server may be up while the separate tileserver is down or otherwise unreachable. In this case the /health endpoint should not return HTTP 200. The endpoint has been expanded such that when OGC API Tiles are configured, a call to /health relays a HEAD request to a specific (predetermined) tile, and returns the resulting status code. When OGC API Tiles are not configured, the previous behaviour remains.

Type of change

(Remove irrelevant options)

  • Improvement of existing feature
  • Configuration change

Checklist:

  • I've double-checked the code in this PR myself
  • I've left the code better than before (boy scout rule)
  • The code is readable, comments are added that explain hard or non-obvious parts.
  • I've expanded/improved the (unit) tests, when applicable
  • I've run (unit) tests that prove my solution works
  • There's no sensitive information like credentials in my PR

@kad-korpem kad-korpem merged commit 4b13e21 into master Dec 10, 2024
5 checks passed
@kad-korpem kad-korpem deleted the PDOK/expand_health_endpoint branch December 10, 2024 12:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants