fix(ecs): Improve health check and deployment configuration
- Increase HealthCheckGracePeriodSeconds from 0 to 300 - Add explicit DeploymentController type (ECS) - Fix DeploymentConfiguration structure and add Alarms - Update DeploymentCircuitBreaker configuration with proper Rollback handling
This commit is contained in:
parent
058d1be93f
commit
39cd41ef5a
1 changed files with 9 additions and 3 deletions
|
|
@ -35,6 +35,7 @@ Parameters:
|
||||||
|
|
||||||
Resources:
|
Resources:
|
||||||
|
|
||||||
|
|
||||||
ECSService:
|
ECSService:
|
||||||
Type: AWS::ECS::Service
|
Type: AWS::ECS::Service
|
||||||
Properties:
|
Properties:
|
||||||
|
|
@ -56,13 +57,18 @@ Resources:
|
||||||
- TargetGroupArn: !ImportValue forgejo-network-TargetGroupArn
|
- TargetGroupArn: !ImportValue forgejo-network-TargetGroupArn
|
||||||
ContainerName: forgejo
|
ContainerName: forgejo
|
||||||
ContainerPort: 3000
|
ContainerPort: 3000
|
||||||
HealthCheckGracePeriodSeconds: 0
|
HealthCheckGracePeriodSeconds: 300
|
||||||
|
DeploymentController:
|
||||||
|
Type: ECS
|
||||||
DeploymentConfiguration:
|
DeploymentConfiguration:
|
||||||
|
Strategy: ROLLING
|
||||||
MaximumPercent: 100
|
MaximumPercent: 100
|
||||||
MinimumHealthyPercent: 0
|
MinimumHealthyPercent: 0
|
||||||
DeploymentCircuitBreaker:
|
Alarms:
|
||||||
Enable: true
|
AlarmNames:
|
||||||
|
- myAlarm
|
||||||
Rollback: true
|
Rollback: true
|
||||||
|
Enable: true
|
||||||
SchedulingStrategy: REPLICA
|
SchedulingStrategy: REPLICA
|
||||||
EnableECSManagedTags: true
|
EnableECSManagedTags: true
|
||||||
PropagateTags: TASK_DEFINITION
|
PropagateTags: TASK_DEFINITION
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue