Skip to content

Commit

Permalink
Switching on new ECS scaling policy in Prod (#1430)
Browse files Browse the repository at this point in the history
  • Loading branch information
pskushwaha1 authored Mar 5, 2024
1 parent bfc8333 commit 5e9b7ac
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion ci/terraform/auto-scaling.tf
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ resource "aws_appautoscaling_policy" "frontend_auto_scaling_policy_scale_in" {
step_scaling_policy_configuration {
adjustment_type = "PercentChangeInCapacity"
metric_aggregation_type = "Average"
cooldown = 120
cooldown = 240
min_adjustment_magnitude = 5

step_adjustment {
Expand Down
8 changes: 4 additions & 4 deletions ci/terraform/production.tfvars
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ common_state_bucket = "digital-identity-prod-tfstate"
redis_node_size = "cache.m4.xlarge"

frontend_auto_scaling_enabled = false
frontend_auto_scaling_v2_enabled = false
frontend_task_definition_cpu = 1024
frontend_task_definition_memory = 2048
frontend_auto_scaling_v2_enabled = true
frontend_task_definition_cpu = 512
frontend_task_definition_memory = 1024
frontend_auto_scaling_min_count = 4
frontend_auto_scaling_max_count = 60
frontend_auto_scaling_max_count = 240
ecs_desired_count = 4
support_international_numbers = "1"
support_account_recovery = "1"
Expand Down

0 comments on commit 5e9b7ac

Please sign in to comment.