From 8530dde7df66c8c8aee31cbbcd975a1778cb6615 Mon Sep 17 00:00:00 2001 From: Aditya Sridhar Date: Thu, 10 Oct 2024 10:40:49 -0400 Subject: [PATCH 1/2] chore: bump up the container memory and cpu temporarily to handle large volume of requests --- terraform/modules/gost_api/task.tf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/terraform/modules/gost_api/task.tf b/terraform/modules/gost_api/task.tf index e79327848..2cffc114d 100644 --- a/terraform/modules/gost_api/task.tf +++ b/terraform/modules/gost_api/task.tf @@ -156,8 +156,8 @@ resource "aws_ecs_task_definition" "default" { # Valid configurations here: # https://docs.aws.amazon.com/AmazonECS/latest/developerguide/AWS_Fargate.html#fargate-tasks-size - cpu = 256 - memory = 512 + cpu = 512 + memory = 2048 runtime_platform { operating_system_family = "LINUX" From 7b5d7c1ea2657adce56b9be4e7b2fea704758d5d Mon Sep 17 00:00:00 2001 From: aditya Date: Thu, 10 Oct 2024 11:01:01 -0400 Subject: [PATCH 2/2] Update terraform/modules/gost_api/task.tf Co-authored-by: Tyler Hendrickson <1851017+TylerHendrickson@users.noreply.github.com> --- terraform/modules/gost_api/task.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/terraform/modules/gost_api/task.tf b/terraform/modules/gost_api/task.tf index 2cffc114d..ef4c9cd9d 100644 --- a/terraform/modules/gost_api/task.tf +++ b/terraform/modules/gost_api/task.tf @@ -155,7 +155,7 @@ resource "aws_ecs_task_definition" "default" { requires_compatibilities = ["FARGATE"] # Valid configurations here: - # https://docs.aws.amazon.com/AmazonECS/latest/developerguide/AWS_Fargate.html#fargate-tasks-size + # https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_definition_parameters.html#task_size cpu = 512 memory = 2048