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

Adding a healthcheck on the Docker Image #86

Open
gnock opened this issue Sep 7, 2018 · 0 comments
Open

Adding a healthcheck on the Docker Image #86

gnock opened this issue Sep 7, 2018 · 0 comments

Comments

@gnock
Copy link
Contributor

gnock commented Sep 7, 2018

Healthcheck on Docker image are great to detect problems as soon as possible.
The process might not crash, but might not respond to external requests (both on the p2p port and rpc port).

Adding the HEALTHCHECK instruction in the Dockerfile would allow a better high availibility.

Possible options are to write a bash script runned each 10s trying to establish a connection on the p2p port, and another instruction making a call to get the blockchain height and expecting a 200 http status.

In the future, a fork detection would also be welcomed.

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

No branches or pull requests

2 participants