Skip to content

Commit

Permalink
[Issue #2475] Scale Out the ASGs more aggresively (#2966)
Browse files Browse the repository at this point in the history
## Summary

Fixes #2475

### Time to review: __2 mins__

## Changes proposed

- Changes the ASGs to evaluate scale-out potential every 5 seconds
- Changes to ASGs to target 50% maximum CPU and memory when performing
scaling actions

## Context for reviewers

During load tests, I found that the frontend wasn't scaling up quickly
enough to meet demand. I'm hoping that this auto-scaling configuration
will help alleviate that.
  • Loading branch information
coilysiren authored Nov 20, 2024
1 parent 2ca52d0 commit 873c776
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions infra/modules/service/autoscaling.tf
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ resource "aws_appautoscaling_policy" "ecs_scale_policy_memory" {
predefined_metric_type = "ECSServiceAverageMemoryUtilization"
}
scale_in_cooldown = 300
scale_out_cooldown = 60
target_value = 75
scale_out_cooldown = 5
target_value = 50
}
}

Expand All @@ -41,7 +41,7 @@ resource "aws_appautoscaling_policy" "ecs_scale_policy_cpu" {
predefined_metric_type = "ECSServiceAverageCPUUtilization"
}
scale_in_cooldown = 300
scale_out_cooldown = 60
target_value = 75
scale_out_cooldown = 5
target_value = 50
}
}

0 comments on commit 873c776

Please sign in to comment.