Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: increase max instances #5588

Merged
merged 2 commits into from
Jan 25, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 12 additions & 10 deletions ops/mainnet/prod/backend/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,8 @@ module "sdk-server" {
health_check_path = "/ping"
container_port = 8080
loadbalancer_port = 80
cpu = 1024
memory = 2048
cpu = 512
memory = 1024
instance_count = 2
timeout = 180
environment = var.environment
Expand All @@ -181,14 +181,16 @@ module "sdk_server_cache" {
}

module "sdk_server_auto_scaling" {
source = "../../../modules/auto-scaling"
stage = var.stage
environment = var.environment
domain = var.domain
ecs_service_name = module.sdk-server.service_name
ecs_cluster_name = module.ecs.ecs_cluster_name
min_capacity = 2
max_capacity = 10
source = "../../../modules/auto-scaling"
stage = var.stage
environment = var.environment
domain = var.domain
ecs_service_name = module.sdk-server.service_name
ecs_cluster_name = module.ecs.ecs_cluster_name
avg_cpu_utilization_target = 40
avg_mem_utilization_target = 60
min_capacity = 2
max_capacity = 30
}


Expand Down
Loading