From fd7d058d2de37e73e38e74c3c8f13669abd78f00 Mon Sep 17 00:00:00 2001 From: Dan Schultz Date: Thu, 12 Oct 2023 11:26:58 -0400 Subject: [PATCH] Increase api image size As part of our work exploring the impact of the sftp service, we identified the need to increase the perfomance capability of the API server in order to handle the volume of API calls made by SFTP users [1]. Amazon provides a range of instance sizes. This choice increases the CPU capacity of the machine without expanding the memory capacity. This is because our initial benchmarks seemed to be pinning CPU usage but not putting a particularly large dent in memory. [1] https://github.com/PermanentOrg/sftp-service/issues/268 --- instances/dev/main.tf | 2 +- instances/production/main.tf | 2 +- instances/staging/main.tf | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/instances/dev/main.tf b/instances/dev/main.tf index da2f8d2..1ff9631 100644 --- a/instances/dev/main.tf +++ b/instances/dev/main.tf @@ -32,7 +32,7 @@ variable "perm_env" { resource "aws_instance" "api" { ami = module.perm_env_data.backend_ami - instance_type = "m4.large" + instance_type = "c7g.xlarge" vpc_security_group_ids = [module.perm_env_data.security_group] monitoring = true private_ip = "172.31.0.80" diff --git a/instances/production/main.tf b/instances/production/main.tf index 3855ff4..29e7ed7 100644 --- a/instances/production/main.tf +++ b/instances/production/main.tf @@ -32,7 +32,7 @@ variable "perm_env" { resource "aws_instance" "api" { ami = module.perm_env_data.backend_ami - instance_type = "m4.large" + instance_type = "c7g.xlarge" vpc_security_group_ids = [module.perm_env_data.security_group] monitoring = true subnet_id = module.perm_env_data.subnet diff --git a/instances/staging/main.tf b/instances/staging/main.tf index f0c839c..2d5e756 100644 --- a/instances/staging/main.tf +++ b/instances/staging/main.tf @@ -32,7 +32,7 @@ variable "perm_env" { resource "aws_instance" "api" { ami = module.perm_env_data.backend_ami - instance_type = "m4.large" + instance_type = "c7g.xlarge" vpc_security_group_ids = [module.perm_env_data.security_group] monitoring = true subnet_id = module.perm_env_data.subnet