How a Single Mismatched Health Check Path Silently Broke an ECS Fargate Service
An engineering team discovered their AWS ECS Fargate service had been silently failing for days after a routine deployment check revealed zero running tasks against a desired count of one. The root cause was a health check still pointing to /api/health while a recent code refactor had moved the endpoint to /health, causing ECS to repeatedly kill and restart the task every 60 seconds. Because no alerts were configured for the RunningTaskCount metric, the failure went completely unnoticed despite burning compute resources throughout. The team identified three available but unwatched signals: ECS console service events, the CloudWatch RunningTaskCount metric, and the absence of application logs. To prevent recurrence, they introduced a pre-deploy health check path verification step, a CloudWatch alarm that triggers a Slack notification when running tasks fall below the desired count for five or more minutes, and EventBridge-based streaming of ECS service events to CloudWatch Logs.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in