无法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 个月前17 查看次数
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 个月前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则