diff --git a/spire/templates/apps/dovetail-spots.yml b/spire/templates/apps/dovetail-spots.yml index 2108df58..25f31554 100644 --- a/spire/templates/apps/dovetail-spots.yml +++ b/spire/templates/apps/dovetail-spots.yml @@ -313,6 +313,12 @@ Resources: - Name: SPOTS_HOST Value: !Ref SpotsHostname Essential: true + HealthCheck: + Command: [ "CMD-SHELL", !Sub "curl --fail http://localhost:${kWebApplicationPort}/up || exit 1" ] + Interval: 30 + Retries: 3 + StartPeriod: 15 + Timeout: 5 Image: !Sub ${AWS::AccountId}.dkr.ecr.${AWS::Region}.amazonaws.com/${EcrImageTag} LinuxParameters: InitProcessEnabled: true @@ -440,6 +446,12 @@ Resources: - Name: SPOTS_HOST Value: !Ref SpotsHostname Essential: true + HealthCheck: + Command: [ "CMD-SHELL", "pgrep -f solid-queue-worker || exit 1" ] + Interval: 30 + Retries: 3 + StartPeriod: 15 + Timeout: 5 Image: !Sub ${AWS::AccountId}.dkr.ecr.${AWS::Region}.amazonaws.com/${EcrImageTag} LinuxParameters: InitProcessEnabled: true diff --git a/spire/templates/apps/feeder.yml b/spire/templates/apps/feeder.yml index 92c15f0c..c6751907 100644 --- a/spire/templates/apps/feeder.yml +++ b/spire/templates/apps/feeder.yml @@ -1092,6 +1092,12 @@ Resources: - Name: WORKER_COUNT Value: !If [IsProduction, 8, 5] Essential: true + HealthCheck: + Command: [ "CMD-SHELL", "pgrep -f shoryuken || exit 1" ] + Interval: 30 + Retries: 3 + StartPeriod: 15 + Timeout: 5 Image: !Sub ${AWS::AccountId}.dkr.ecr.${AWS::Region}.amazonaws.com/${EcrImageTag} LinuxParameters: InitProcessEnabled: true