Constellation-Labs / cllb

1 stars 1 forks source link

Return 400 on /health when LB has zero hosts #16

Closed AlexBrandes closed 1 year ago

AlexBrandes commented 1 year ago

The current health check endpoint always returns a 200 response, even if there are no known hosts. This change returns a 400 response when no hosts are found so that the health checks can be properly responded to. Repeated health check failures will now cause ECS to trigger a new task to launch and kick off the node discovery process again.

Tested locally.