From a586d4c4e286a98b2931ab2eabf43ad70a26db96 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andrei=20Ioni=C8=9B=C4=83?= Date: Mon, 2 Dec 2024 18:46:28 +0200 Subject: [PATCH] infra: version bump (#148) * infra: version bump * infra: scale down services * infra: scale down ecs --- terraform/ecs.tf | 2 +- terraform/locals.tf | 2 +- terraform/service_app.tf | 6 +++--- terraform/service_horizon.tf | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) 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