Skip to content

Commit

Permalink
Use t3.large for container service to handle FastSurfer pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
milanmlft committed Aug 17, 2023
1 parent 00c1d15 commit e486995
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ terraform destroy

This is assuming usage of 50 hours per week (10 hours per day times 5 days per week) with the following resources:
- web server: t3.large
- Container Service server: t3.medium
- Container Service server: t3.large
- database server: db.t3.medium
- up to 20 GB EFS storage

Expand Down
2 changes: 1 addition & 1 deletion provision/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ The Terraform scripts will create the following infrastructure on AWS:

### Instance types

The smallest instance types (`t2.nano`) do not provide enough RAM for running XNAT. We have found that we need to use `t3.medium` instances for the Container Service and database, and `t3.large` instances for the web server, to prevent the site from crashing when uploading data or running containers.
The smallest instance types (`t2.nano`) do not provide enough RAM for running XNAT. We have found that we need to use `t3.large` instances for the Container Service and database, and `t3.large` instances for the web server, to prevent the site from crashing when uploading data or running containers.

You can change the instance type used by setting `ec2_instance_type` in your `xnat-aws/provision/terraform.tfvars` file, e.g.:

Expand Down
4 changes: 2 additions & 2 deletions provision/modules/web-server/vars.tf
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ variable "instance_types" {
type = map(string)
description = "The instance type to use for the EC2 instances"
default = {
"main" = "t3.medium"
"container" = "t2.micro"
"main" = "t3.large"
"container" = "t3.large"
}
}

Expand Down
2 changes: 1 addition & 1 deletion provision/terraform.tfvars_sample
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ extend_https_cidr = []
ec2_instance_types = {
"xnat_web" = "t3.large" # XNAT needs more RAM than available in t2.micro
"xnat_db" = "db.t3.medium" # XNAT needs more RAM than available in t2.micro
"xnat_cserv" = "t3.medium"
"xnat_cserv" = "t3.large"
}

# EC2 root block device volume size
Expand Down
4 changes: 2 additions & 2 deletions provision/vars.tf
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ variable "ec2_instance_types" {
description = "Instance type to use for each server"
default = {
"xnat_web" = "t3.large"
"xnat_db" = "db.t3.medium"
"xnat_cserv" = "t2.medium"
"xnat_db" = "db.t3.large"
"xnat_cserv" = "t3.large"
}
}

Expand Down

0 comments on commit e486995

Please sign in to comment.