diff --git a/apps/infra/production/codedang/codedang_api.tf b/apps/infra/production/codedang/codedang_api.tf index d8bf00e01..d2b296de6 100644 --- a/apps/infra/production/codedang/codedang_api.tf +++ b/apps/infra/production/codedang/codedang_api.tf @@ -11,7 +11,7 @@ module "codedang_api" { autoscaling_group = { name = "Codedang-AutoScalingGroup-Api" max_size = 10 - desired_capacity = 2 + desired_capacity = 1 } autoscaling_policy = { diff --git a/apps/infra/production/codedang/codedang_iris.tf b/apps/infra/production/codedang/codedang_iris.tf index 1cb9fdfb7..17820d3ed 100644 --- a/apps/infra/production/codedang/codedang_iris.tf +++ b/apps/infra/production/codedang/codedang_iris.tf @@ -12,7 +12,7 @@ module "codedang_iris" { autoscaling_group = { name = "Codedang-AutoScalingGroup-Iris" max_size = 4 - desired_capacity = 2 + desired_capacity = 1 } autoscaling_policy = { diff --git a/apps/infra/production/codedang/codedang_service_client.tf b/apps/infra/production/codedang/codedang_service_client.tf index f8f6c0b5b..ad7e03d6d 100644 --- a/apps/infra/production/codedang/codedang_service_client.tf +++ b/apps/infra/production/codedang/codedang_service_client.tf @@ -107,7 +107,7 @@ module "client_api" { ecs_service = { name = "Codedang-Client-Api-Service" cluster_arn = module.codedang_api.ecs_cluster.arn - desired_count = 3 + desired_count = 2 load_balancer = { container_name = "Codedang-Client-Api" container_port = 4000 @@ -116,7 +116,7 @@ module "client_api" { } appautoscaling_target = { - min_capacity = 3 + min_capacity = 2 max_capacity = 8 resource_id = { cluster_name = module.codedang_api.ecs_cluster.name diff --git a/apps/infra/production/codedang/codedang_service_iris.tf b/apps/infra/production/codedang/codedang_service_iris.tf index 1b68129a1..d3139393e 100644 --- a/apps/infra/production/codedang/codedang_service_iris.tf +++ b/apps/infra/production/codedang/codedang_service_iris.tf @@ -75,12 +75,12 @@ module "iris" { ecs_service = { name = "Codedang-Iris-Service" cluster_arn = module.codedang_iris.ecs_cluster.arn - desired_count = 6 + desired_count = 2 } appautoscaling_target = { - min_capacity = 6 - max_capacity = 6 + min_capacity = 2 + max_capacity = 4 resource_id = { cluster_name = module.codedang_iris.ecs_cluster.name }