Menu

1 / 2

Your App is 'Up' But Not Working: Docker Healthchecks

DEV Community·Mustafa ERBAY·7 months ago
#6lupPECJ
Long article (1426 words) — no AI summary yet.
Reading 0:00
15s threshold

Last winter, we had a critical integration service running for a production ERP. Around 02:00 AM, everything looked green on my system monitor; the service was in "Up" status in the docker ps output. However, the operator screens were blank, and no data was coming from the production line. When I dove into the logs in a panic, I realized the service couldn't connect to an external API.

This is exactly what it means when a container that appears "Up" is not actually "healthy." Docker only checks if the main process is running; it doesn't know if the application is truly functional. In this post, I will explain step-by-step how to overcome these misleading situations and write robust internal health checks (HEALTHCHECK) for our Docker containers.

Why Do We Fall Into the 'Up' But 'Not Working' State?

This is a problem I frequently encounter, usually exploding at a critical moment.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.