Skip to content

Commit fd7d058

Browse files
committed
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] PermanentOrg/sftp-service#268
1 parent a779d7b commit fd7d058

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

instances/dev/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ variable "perm_env" {
3232

3333
resource "aws_instance" "api" {
3434
ami = module.perm_env_data.backend_ami
35-
instance_type = "m4.large"
35+
instance_type = "c7g.xlarge"
3636
vpc_security_group_ids = [module.perm_env_data.security_group]
3737
monitoring = true
3838
private_ip = "172.31.0.80"

instances/production/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ variable "perm_env" {
3232

3333
resource "aws_instance" "api" {
3434
ami = module.perm_env_data.backend_ami
35-
instance_type = "m4.large"
35+
instance_type = "c7g.xlarge"
3636
vpc_security_group_ids = [module.perm_env_data.security_group]
3737
monitoring = true
3838
subnet_id = module.perm_env_data.subnet

instances/staging/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ variable "perm_env" {
3232

3333
resource "aws_instance" "api" {
3434
ami = module.perm_env_data.backend_ami
35-
instance_type = "m4.large"
35+
instance_type = "c7g.xlarge"
3636
vpc_security_group_ids = [module.perm_env_data.security_group]
3737
monitoring = true
3838
subnet_id = module.perm_env_data.subnet

0 commit comments

Comments
 (0)