From 6aa32d938eb3c257d398d1620a0a6c28e3433344 Mon Sep 17 00:00:00 2001 From: DecFox <33030671+DecFox@users.noreply.github.com> Date: Fri, 11 Oct 2024 00:07:15 +0530 Subject: [PATCH] refactor(prod): switch to using t3a.medium instances (#107) It seems we are low on memory on our `t3.micro` instances leading to impending task deployments. This should scale our instances enough to allow running all service tasks for now. --- tf/environments/prod/main.tf | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tf/environments/prod/main.tf b/tf/environments/prod/main.tf index 3c90337e..fa986c65 100644 --- a/tf/environments/prod/main.tf +++ b/tf/environments/prod/main.tf @@ -314,11 +314,11 @@ module "ooniapi_cluster" { subnet_ids = module.network.vpc_subnet_public[*].id # You need be careful how these are tweaked. - asg_min = 4 + asg_min = 2 asg_max = 8 - asg_desired = 4 + asg_desired = 2 - instance_type = "t3.micro" + instance_type = "t3a.medium" tags = merge( local.tags,