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

fix: reduce error threshold and downscale #185

Merged
merged 1 commit into from
Mar 25, 2024
Merged
Show file tree
Hide file tree
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
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
Loading