Commit 873a8001 authored by Michael Killough's avatar Michael Killough
Browse files

Add --max-time to the curl health check.

We're seeing the application accept connections but then hang. This
changes the curl command to time out the request after 5s (default ECS
health check timeout) which will cause it to retry.

It's unclear whether this is a debugging step or a workaround. Will test
in staging initially.
parent cc5277e9
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -8,7 +8,7 @@ set -ex

# Wait for the application to start before accepting ALB requests.
while sleep 2; do
  curl http://app:${APP_PORT}${HEALTHCHECK_PATH:-/health} && break
  curl --max-time 5 http://app:${APP_PORT}${HEALTHCHECK_PATH:-/health} && break
done

# run in foreground as pid 1