Skip to content

Commit

Permalink
Increase api image size
Browse files Browse the repository at this point in the history
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
  • Loading branch information
slifty committed Oct 19, 2023
1 parent a779d7b commit fd7d058
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion instances/dev/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion instances/production/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion instances/staging/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fd7d058

Please sign in to comment.