Skip to content

Commit

Permalink
Tweak the task sizes and instance sizes of dev
Browse files Browse the repository at this point in the history
  • Loading branch information
hellais committed Sep 17, 2024
1 parent 1f4bd54 commit b5977c2
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions tf/environments/dev/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -301,11 +301,11 @@ module "ooniapi_cluster" {
vpc_id = module.network.vpc_id
subnet_ids = module.network.vpc_subnet_private[*].id

asg_min = 3
asg_min = 2
asg_max = 6
asg_desired = 3
asg_desired = 2

instance_type = "t3.small"
instance_type = "t3.micro"

tags = merge(
local.tags,
Expand Down Expand Up @@ -335,6 +335,9 @@ module "ooniapi_ooniprobe_deployer" {
module "ooniapi_ooniprobe" {
source = "../../modules/ooniapi_service"

task_cpu = 256
task_memory = 512

# First run should be set on first run to bootstrap the task definition
# first_run = true

Expand Down Expand Up @@ -386,6 +389,9 @@ module "ooniapi_oonirun_deployer" {
module "ooniapi_oonirun" {
source = "../../modules/ooniapi_service"

task_cpu = 256
task_memory = 512

vpc_id = module.network.vpc_id
public_subnet_ids = module.network.vpc_subnet_public[*].id
private_subnet_ids = module.network.vpc_subnet_private[*].id
Expand Down Expand Up @@ -434,6 +440,9 @@ module "ooniapi_oonifindings_deployer" {
module "ooniapi_oonifindings" {
source = "../../modules/ooniapi_service"

task_cpu = 256
task_memory = 512

vpc_id = module.network.vpc_id
public_subnet_ids = module.network.vpc_subnet_public[*].id
private_subnet_ids = module.network.vpc_subnet_private[*].id
Expand Down Expand Up @@ -482,6 +491,9 @@ module "ooniapi_ooniauth_deployer" {
module "ooniapi_ooniauth" {
source = "../../modules/ooniapi_service"

task_cpu = 256
task_memory = 512

vpc_id = module.network.vpc_id
public_subnet_ids = module.network.vpc_subnet_public[*].id
private_subnet_ids = module.network.vpc_subnet_private[*].id
Expand Down

0 comments on commit b5977c2

Please sign in to comment.