Skip to content

Commit

Permalink
fix(infra): reduce resource spec for vacation (#2264)
Browse files Browse the repository at this point in the history
  • Loading branch information
donghun1214 authored Dec 19, 2024
1 parent b8e55c0 commit a82e9f0
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion apps/infra/production/codedang/codedang_api.tf
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ module "codedang_api" {
autoscaling_group = {
name = "Codedang-AutoScalingGroup-Api"
max_size = 10
desired_capacity = 2
desired_capacity = 1
}

autoscaling_policy = {
Expand Down
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 = 2
desired_capacity = 1
}

autoscaling_policy = {
Expand Down
4 changes: 2 additions & 2 deletions apps/infra/production/codedang/codedang_service_client.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
6 changes: 3 additions & 3 deletions apps/infra/production/codedang/codedang_service_iris.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit a82e9f0

Please sign in to comment.