Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Add /healthz endpoint to server #259

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

Open
ItalyPaleAle wants to merge 1 commit into restic:master
base: master
Choose a base branch
Loading
from ItalyPaleAle:healthz-endpoint

Conversation

@ItalyPaleAle
Copy link

@ItalyPaleAle ItalyPaleAle commented Nov 6, 2023

This PR adds a tiny handler for /healthz, which responds with an empty response and 204 status code. This is very helpful to set up healthchecks (for example, liveness probes), in a container orchestrator or proxy.

I saw that 2 years ago, someone started working on health endpoints in #159, but that PR seems to have been abandoned.

This PR is a lot simpler in the approach as it always responds with a 204 status code, without performing any actual check: it just asserts that rest-server is running and healthy.

simonhammes reacted with thumbs up emoji
Copy link
Author

@rawtaz @MichaelEischer is this PR still something you'd consider? or should I close it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

1 participant

AltStyle によって変換されたページ (->オリジナル) /