Skip to content

Commit

Permalink
Merge pull request #896 from NOAA-OWP/aws-batch-coastal-tweaks
Browse files Browse the repository at this point in the history
- Updated the AWS Batch Compute environment to use a more memory-optimized EC2 Instance Type.
- Updated Job definition for Schism AWS Batch Jobs to have the proper CPU and memory requirements.
  • Loading branch information
nickchadwick-noaa authored Sep 30, 2024
2 parents cc10895 + 30e958d commit bd33bdf
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -262,11 +262,11 @@ resource "aws_batch_compute_environment" "schism_fim_compute_env" {
instance_role = aws_iam_instance_profile.schism_execution.arn

instance_type = [
"c7g",
"r7g.4xlarge",
]

min_vcpus = 0
max_vcpus = 108
max_vcpus = 112

security_group_ids = var.security_groups

Expand Down Expand Up @@ -300,11 +300,11 @@ resource "aws_batch_job_definition" "schism_fim_job_definition" {
resourceRequirements = [
{
type = "VCPU"
value = "4"
value = "1"
},
{
type = "MEMORY"
value = "8000"
value = "7000"
}
]

Expand Down

0 comments on commit bd33bdf

Please sign in to comment.