Skip to content

Commit 66f7bce

Browse files
authored
Merge pull request #861 from PRX/ecs-health-checks
ECS health checks
2 parents c9970b6 + ca4331a commit 66f7bce

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

spire/templates/apps/dovetail-spots.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -313,6 +313,12 @@ Resources:
313313
- Name: SPOTS_HOST
314314
Value: !Ref SpotsHostname
315315
Essential: true
316+
HealthCheck:
317+
Command: [ "CMD-SHELL", !Sub "curl --fail http://localhost:${kWebApplicationPort}/up || exit 1" ]
318+
Interval: 30
319+
Retries: 3
320+
StartPeriod: 15
321+
Timeout: 5
316322
Image: !Sub ${AWS::AccountId}.dkr.ecr.${AWS::Region}.amazonaws.com/${EcrImageTag}
317323
LinuxParameters:
318324
InitProcessEnabled: true
@@ -440,6 +446,12 @@ Resources:
440446
- Name: SPOTS_HOST
441447
Value: !Ref SpotsHostname
442448
Essential: true
449+
HealthCheck:
450+
Command: [ "CMD-SHELL", "pgrep -f solid-queue-worker || exit 1" ]
451+
Interval: 30
452+
Retries: 3
453+
StartPeriod: 15
454+
Timeout: 5
443455
Image: !Sub ${AWS::AccountId}.dkr.ecr.${AWS::Region}.amazonaws.com/${EcrImageTag}
444456
LinuxParameters:
445457
InitProcessEnabled: true

spire/templates/apps/feeder.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1092,6 +1092,12 @@ Resources:
10921092
- Name: WORKER_COUNT
10931093
Value: !If [IsProduction, 8, 5]
10941094
Essential: true
1095+
HealthCheck:
1096+
Command: [ "CMD-SHELL", "pgrep -f shoryuken || exit 1" ]
1097+
Interval: 30
1098+
Retries: 3
1099+
StartPeriod: 15
1100+
Timeout: 5
10951101
Image: !Sub ${AWS::AccountId}.dkr.ecr.${AWS::Region}.amazonaws.com/${EcrImageTag}
10961102
LinuxParameters:
10971103
InitProcessEnabled: true

0 commit comments

Comments
 (0)