Skip to content

Commit

Permalink
fix: reduce error threshold and downscale
Browse files Browse the repository at this point in the history
  • Loading branch information
chris13524 committed Mar 25, 2024
1 parent 3e1b824 commit 06594a7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ local targets = grafana.targets;
local alert = grafana.alert;
local alertCondition = grafana.alertCondition;

local mem_threshold = 1500000000; // 1.5GiB
local mem_threshold = 500000000; // 0.5GiB
local max_memory = 16000000000; // 16GiB (AWS DocDB max on db.r6g.large)

local _configuration = defaults.configuration.timeseries
Expand Down
4 changes: 2 additions & 2 deletions terraform/res_application.tf
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ module "ecs" {
# Cluster
ecr_repository_url = local.ecr_repository_url
image_version = var.image_version
task_cpu = 512
task_memory = 1024
task_cpu = 256
task_memory = 512
autoscaling_desired_count = 2
autoscaling_min_capacity = 2
autoscaling_max_capacity = 8
Expand Down

0 comments on commit 06594a7

Please sign in to comment.