无法停止AWS Autoscaling Group启动的竞价型实例

时间:2020-03-30 09:50:49

标签: amazon-web-services aws-auto-scaling spot-instances

我有一个ASG,该ASG当前使用的是按需实例,而我想移至使用竞价型实例,并且我使用了以下 MixedInstancesPolicy

    {
      "LaunchTemplate" : {
        "LaunchTemplateSpecification": {...}
      },
      "InstancesDistribution": {
        "OnDemandBaseCapacity": 0,
        "OnDemandPercentageAboveBaseCapacity": 0,
        "SpotAllocationStrategy": "capacity-optimized"
      }
    }

这将按预期启动点,但是我无法从控制台停止它们,只能终止。据我所知,是因为它发出了一次一次性竞价请求,但是我想获得持久竞价,这可能吗?

更新

我还尝试了不使用MixedInstancesPolicy,而是将InstanceMarketOptions添加到启动模板中:

       "MarketType": "spot",
        "SpotOptions": {
          "InstanceInterruptionBehavior": "stop",
          "SpotInstanceType": "persistent"
        }

现在我在CF控制台上收到此错误:不兼容的启动模板:Auto Scaling仅支持“一次性”竞价型实例类型,没有持续时间。 因此,似乎不可能,我必须以某种方式解决它。

0 个答案:

没有答案
相关问题