Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
[FEAT] Implement Docker healthcheck #3631
Comments
Fix smartcontractkit#3631 Implement a /healthcheck endpoint and adds a Docker healthcheck check.
|
I want this too |
|
Thanks for this issue @willianpaixao! Added it as an |
Fix smartcontractkit#3631 Implement a /healthcheck endpoint and adds a Docker healthcheck check.


Description
Add a simple
/healthcheckendpoint that simply returns 200 in case no error has been reported. In case of error, a different return code and a JSON returns otherwise.Motivation
To easily spot and automatically restart unresponsive containers.
Justification
Such a feature would improve the monitoring of the chainlink node, letting your monitoring tool quick know and restart a given container. [1]
Most modern orchestration tools (ECS, K8S, etc) can read this health status and automatically restart the service. [2] [3]
Additional Information
If the application is still responsive (working normally), a
docker pswould indicate the healthy status:CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES e2722770cc7f smartcontract/chainlink:latest "chainlink local node" 3 minutes ago Up 3 minutes (healthy) chainlink