Mitigate EC2 Spot instance interruptions
Some jobs are failing because EC2 is terminating Spot instances from being outbid (BidEvictedEvents in CloudTrail). * Increase bid percentage to 100% * Remove highly interrupted instance types, leaving only instance types with <5% frequency of interruption. https://aws.amazon.com/ec2/spot/instance-advisor/
This commit is contained in:
parent
dc64e625d3
commit
2da405d505
1 changed files with 1 additions and 8 deletions
|
|
@ -102,22 +102,15 @@ rBuildsBatchComputeEnvironment:
|
|||
SecurityGroupIds: ${self:custom.securityGroupIds}
|
||||
Subnets: ${self:custom.subnets}
|
||||
Type: SPOT
|
||||
BidPercentage: 85
|
||||
BidPercentage: 100
|
||||
InstanceRole:
|
||||
"Fn::GetAtt": [ rBuildsIamInstanceProfile, Arn ]
|
||||
InstanceTypes:
|
||||
- m6i.xlarge
|
||||
- m6i.2xlarge
|
||||
- m5.xlarge
|
||||
- m5.2xlarge
|
||||
- m5a.xlarge
|
||||
- m5a.2xlarge
|
||||
- r5.xlarge
|
||||
- r5.2xlarge
|
||||
- r5a.xlarge
|
||||
- r5a.2xlarge
|
||||
- c6i.xlarge
|
||||
- c6i.2xlarge
|
||||
- c5.xlarge
|
||||
- c5.2xlarge
|
||||
- c5a.xlarge
|
||||
|
|
|
|||
Loading…
Reference in a new issue