Skip to content

Commit

Permalink
infra: version bump (#148)
Browse files Browse the repository at this point in the history
* infra: version bump

* infra: scale down services

* infra: scale down ecs
  • Loading branch information
andreiio authored Dec 2, 2024
1 parent 24b0b7a commit a586d4c
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion terraform/ecs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion terraform/locals.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ locals {
namespace = "rezultatevot-v2-${var.env}"
image = {
repo = "code4romania/rezultatevot",
tag = "0.9.18"
tag = "0.9.19"
}

domains = [
Expand Down
6 changes: 3 additions & 3 deletions terraform/service_app.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
4 changes: 2 additions & 2 deletions terraform/service_horizon.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a586d4c

Please sign in to comment.