Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions spire/templates/apps/dovetail-spots.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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" ]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't the || exit 1 redundant? The --fail is already returning non-0 if we've gotten to the ||.

Interval: 30
Retries: 3
StartPeriod: 15
Timeout: 5
Image: !Sub ${AWS::AccountId}.dkr.ecr.${AWS::Region}.amazonaws.com/${EcrImageTag}
LinuxParameters:
InitProcessEnabled: true
Expand Down Expand Up @@ -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
Expand Down
6 changes: 6 additions & 0 deletions spire/templates/apps/feeder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down