Skip to content

Commit

Permalink
fix(infra): change iris spec for stability in parellel grading (#2253)
Browse files Browse the repository at this point in the history
* fix(infra): allocate 1.7GB memory to IRIS container for stability in parallel grading

* fix(infra): configure 2 ec2 instances, each running a signle Iris container

* fix(infra): reduce ECS scale-up detection period to 30 seconds for faster response
  • Loading branch information
donghun1214 authored Dec 6, 2024
1 parent c32ab89 commit 59d1673
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion apps/infra/production/codedang/codedang_iris.tf
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ module "codedang_iris" {
autoscaling_group = {
name = "Codedang-AutoScalingGroup-Iris"
max_size = 4
desired_capacity = 1
desired_capacity = 2
}

autoscaling_policy = {
Expand Down
2 changes: 1 addition & 1 deletion apps/infra/production/codedang/codedang_service_iris.tf
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ module "iris" {
task_definition = {
family = "Codedang-Iris-Api"
cpu = 512
memory = 512
memory = 1700

container_definitions = jsonencode([
jsondecode(templatefile("container_definitions/iris.json", {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ resource "aws_cloudwatch_metric_alarm" "scale_up" {
evaluation_periods = 1
metric_name = "CPUUtilization"
namespace = "AWS/ECS"
period = 60
period = 30
statistic = var.scale_up.cloudwatch_metric_alarm.statistic
threshold = var.scale_up.cloudwatch_metric_alarm.threshold

Expand Down

0 comments on commit 59d1673

Please sign in to comment.