1개 답변
- 최신
- 최다 투표
- 가장 많은 댓글
1
ASG's support setting a custom termination policy for changing which instances are selected for termination when a scale in event occurs https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-termination-policies.html#custom-termination-policy - Beanstalk does not provide a way to override this setting to OldestInstance or the most relevant policy. It only allows for a small subset of settings on the ASG to be adjusted https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/command-options-general.html#command-options-general-autoscalingasg.
답변함 2년 전
관련 콘텐츠
- AWS 공식업데이트됨 3년 전
- AWS 공식업데이트됨 일 년 전
Is there a termination policy that considers the CPU credit balance?
Not one of the build in ones, you'd need to create a Lambda function and use a custom policy as lp901 mentioned. You could change to using the built in "NewestInstance" policy instead of making a custom one, but that isn't guaranteed to get rid of instances with the fewest credits