Limit instance sizes to mitigate Docker timeout failures

* Limit InstanceTypes to specific sizes (xlarge or 2xlarge) so only 1-2 jobs
  can run at a time, instead of potentially 10+. Reduce the number of Docker
  images being pulled at one time to mitigate the 4m Docker image pull
  timeout failures from ECS.
* Restore the r5/r5a instance families for consistency with other serverless
  projects.
This commit is contained in:
Greg Lin 2022-09-01 15:42:42 -05:00
commit b2c157f047

View file

@ -106,12 +106,22 @@ rBuildsBatchComputeEnvironment:
InstanceRole: InstanceRole:
"Fn::GetAtt": [ rBuildsIamInstanceProfile, Arn ] "Fn::GetAtt": [ rBuildsIamInstanceProfile, Arn ]
InstanceTypes: InstanceTypes:
- m6i - m6i.xlarge
- m5 - m6i.2xlarge
- m5a - m5.xlarge
- c6i - m5.2xlarge
- c5 - m5a.xlarge
- c5a - m5a.2xlarge
- r5.xlarge
- r5.2xlarge
- r5a.xlarge
- r5a.2xlarge
- c6i.xlarge
- c6i.2xlarge
- c5.xlarge
- c5.2xlarge
- c5a.xlarge
- c5a.2xlarge
Ec2KeyPair: ${self:custom.ec2KeyPair} Ec2KeyPair: ${self:custom.ec2KeyPair}
Tags: ${self:provider.stackTags} Tags: ${self:provider.stackTags}
MinvCpus: 0 MinvCpus: 0