无法override ASG 中的实例类型

0

【以下的问题经过翻译处理】 我有一个启动模板,指定“t3.medium”作为通过 SPOT 启动的实例。

我想在 ASG 配置中覆盖它。为此,我编辑 ASG 配置并执行以下操作:

  • 在实例类型要求下,我选择“覆盖启动模板”
  • 我选择了 2 个我想要的实例类型:t3.mediumt3a.medium
  • 在实例购买选项下,我选择 100% Spot、0% On-Demand 并禁用“On Demand base capacity”选项
  • 在“分配策略”下选择“最低价”

当我点击“更新”时,我收到错误消息:

Incompatible launch template: You cannot use a launch template that is set to request Spot Instances (InstanceMarketOptions) when you configure an Auto Scaling group with a mixed instances policy. Add a different launch template to the group and try again.

这是一个错误还是我遗漏了什么?

profile picture
전문가
질문됨 5달 전21회 조회
1개 답변
0

【以下的回答经过翻译处理】 你好,

您需要从启动模板选项中删除“spot”,因为它与 AutoScaling 中的多实例类型功能不兼容。由于您在覆盖中选择了“100% spot”,所以您的所有实例都将是 spot(即使您没有在 LT 中选择它)。

基本上,当您使用overrides选项时,您需要让 AutoScaling 逻辑接管Spot或非决策(如果您想在 cloudtrail 中查看底层发生了什么)

这里提到了这种行为:https://docs.aws.amazon.com/autoscaling/ec2/userguide/create-launch-template.html 但我可以看出措辞有点模棱两可,所以我联系了 AutoScaling 团队进行更新,以更清楚地表明您必须取消选中“请求点实例”框

感谢您选择启动模板 :)

profile picture
전문가
답변함 5달 전

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

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

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