From a0621601dfc7fef9ef9e7850157f2c68c3587e2f Mon Sep 17 00:00:00 2001 From: Thean Lim Date: Wed, 15 Jul 2026 00:13:50 +0000 Subject: [PATCH] fix(stability): use /api/v2/health for fluent-bit container health check PR #166 added a container health check to the two ecs-firelens-stability-tests templates using `curl -f http://127.0.0.1:2020/api/v1/health`. On Fluent Bit 5.0.x, `/api/v1/health` is gated behind the `Health_Check` feature and returns HTTP 404 when it is not enabled (the default). The stability test [SERVICE] config sets `HTTP_Server On` but not `Health_Check On`, so every task reports UNHEALTHY during 5.0.x qualification. `/api/v2/health` returns HTTP 200 on all release lines regardless of the `Health_Check` toggle, so switching to it fixes the 5.0.x line while keeping the 1.9.10 (2.x) line green. The original intent of #166 -- surfacing an HTTP server deadlock (fluent-bit#11769) -- is preserved: both endpoints are served by the same HTTP server thread, so a hung server fails `curl -f` either way. --- .../task-definition.json | 2 +- .../templates/s3-fargate-v04-05-2023/task-definition.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/firelens-stability/templates/golden-path-mountebank-fargate-v01-11-2023/task-definition.json b/apps/firelens-stability/templates/golden-path-mountebank-fargate-v01-11-2023/task-definition.json index ab64775..dac9751 100644 --- a/apps/firelens-stability/templates/golden-path-mountebank-fargate-v01-11-2023/task-definition.json +++ b/apps/firelens-stability/templates/golden-path-mountebank-fargate-v01-11-2023/task-definition.json @@ -145,7 +145,7 @@ "initProcessEnabled": true }, "healthCheck": { - "command": ["CMD-SHELL", "curl -f http://127.0.0.1:2020/api/v1/health || exit 1"], + "command": ["CMD-SHELL", "curl -f http://127.0.0.1:2020/api/v2/health || exit 1"], "startPeriod": 30 }, "dependsOn": [{ diff --git a/apps/firelens-stability/templates/s3-fargate-v04-05-2023/task-definition.json b/apps/firelens-stability/templates/s3-fargate-v04-05-2023/task-definition.json index 38f051a..9391e77 100644 --- a/apps/firelens-stability/templates/s3-fargate-v04-05-2023/task-definition.json +++ b/apps/firelens-stability/templates/s3-fargate-v04-05-2023/task-definition.json @@ -58,7 +58,7 @@ } }, "healthCheck": { - "command": ["CMD-SHELL", "curl -f http://127.0.0.1:2020/api/v1/health || exit 1"], + "command": ["CMD-SHELL", "curl -f http://127.0.0.1:2020/api/v2/health || exit 1"], "startPeriod": 30 }{{#if definitions.is_fluent_bit_tail_enabled}}, "mountPoints": [