Skip to content

Add healthcheck #421

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

Closed
wants to merge 2 commits into from
Closed

Add healthcheck #421

wants to merge 2 commits into from

Conversation

tjamet
Copy link

@tjamet tjamet commented Mar 15, 2018

Hi,

For our projects, we are using a health check to postgres status and currently use it in tests to wait for the database to be up.

I thought it could be an interesting feature to add to the base images.

What do you think about it?

tjamet added 2 commits March 15, 2018 14:50
Add a customizable healthcheck

This healthcheck consists of 3 steps:
- Check if the entrypoint script is still running
- Check if postgres is ready to accept connections
- Check if postgres can respond to a query

Every step is logged and can be investigated.

Signed-off-by: Thibault Jamet <[email protected]>
@tianon
Copy link
Member

tianon commented Mar 15, 2018

See #282 😉

@tjamet
Copy link
Author

tjamet commented Mar 16, 2018

you're right @tianon looks like there is an ongoing discussion to solve :)

@yosifkit
Copy link
Member

Closing old issue. (discussion still open on #282)

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