How to disable unlimited CPU credits mode in Elastic Beanstalk?

0

My services are running on Beanstalk, using T4g instances.

By default, the unlimited CPU credit mode seems to be enabled.

I'm pretty happy with the auto-scaling setup, and I'd rather have more instances boot up than have unpredictable costs related to the unlimited CPU credits.

Is there a way to disable the unlimited CPU credits mode? Disabling it per EC2 instance is probably not an option, as I'm guessing the auto-scaling group would just re-create it with the unlimited mode enabled.

Did anybody do something similar?

Thanks!

Kevin
질문됨 2년 전1670회 조회
2개 답변
1
수락된 답변

Have you considered setting the default credit specification for each burstable performance instance family at the account level per AWS Region. For more info refer to set the default credit specification for the account.

RoB
답변함 2년 전
  • Thanks! I didn't know that was possible. Gave it a shot and it indeed works for my purpose!

0

Good question. You can configure this in the Elastic Beanstalk configuration files, .ebextensions with an "aws ec2 modify-instance-credit-specification" Check out https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/ebextensions.html for more information.

I don't believe you can set that option in the console, but I'm not a beanstalk expert.

As for some of the other responses, keep in mind if you set it at the account level - that will affect anything running in the account/region as well.

jsonc
답변함 2년 전
  • Hi. Regarding "keep in mind if you set it at the account level - that will affect anything running in the account/region as well.", please note that the EC2 User Guide states the following: "If you use the Launch Instance Wizard in the EC2 console to launch instances, the value you select for the credit specification overrides the account-level default credit specification. If you use the AWS CLI to launch instances, all new burstable performance instances in the account launch using the default credit specification. The credit specification for existing running or stopped instances is not affected."

    It will be worthwhile testing if the above also happens with Auto Scaling.

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인