File tree Expand file tree Collapse file tree 2 files changed +18
-0
lines changed
Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments