diff --git a/terraform/ecs.tf b/terraform/ecs.tf index 3830572..8df73d1 100644 --- a/terraform/ecs.tf +++ b/terraform/ecs.tf @@ -10,7 +10,7 @@ module "ecs_cluster" { "c6a.xlarge" = "" } - min_size = 7 + min_size = 3 max_size = 24 minimum_scaling_step_size = 1 maximum_scaling_step_size = 1 diff --git a/terraform/locals.tf b/terraform/locals.tf index 75a91d3..e5e5e85 100644 --- a/terraform/locals.tf +++ b/terraform/locals.tf @@ -2,7 +2,7 @@ locals { namespace = "rezultatevot-v2-${var.env}" image = { repo = "code4romania/rezultatevot", - tag = "0.9.18" + tag = "0.9.19" } domains = [ diff --git a/terraform/service_app.tf b/terraform/service_app.tf index ff2ff62..bc84798 100644 --- a/terraform/service_app.tf +++ b/terraform/service_app.tf @@ -7,7 +7,7 @@ module "ecs_app" { name = "${local.namespace}-app" cluster_name = module.ecs_cluster.cluster_name - min_capacity = 9 + min_capacity = 2 max_capacity = 18 deployment_minimum_healthy_percent = 50 @@ -25,8 +25,8 @@ module "ecs_app" { lb_health_check_enabled = true lb_path = "/up" - container_memory_soft_limit = 1536 - container_memory_hard_limit = 2048 + container_memory_soft_limit = 768 + container_memory_hard_limit = 1536 log_group_name = module.ecs_cluster.log_group_name service_discovery_namespace_id = module.ecs_cluster.service_discovery_namespace_id diff --git a/terraform/service_horizon.tf b/terraform/service_horizon.tf index c2a1f2b..c88e93f 100644 --- a/terraform/service_horizon.tf +++ b/terraform/service_horizon.tf @@ -20,8 +20,8 @@ module "ecs_horizon" { use_load_balancer = false - container_memory_soft_limit = 2560 - container_memory_hard_limit = 3072 + container_memory_soft_limit = 1024 + container_memory_hard_limit = 2560 log_group_name = module.ecs_cluster.log_group_name service_discovery_namespace_id = module.ecs_cluster.service_discovery_namespace_id