【问题标题】:aws spot block instance stuck on capacity-not-availableaws 现货块实例卡在容量不可用
【发布时间】:2017-12-13 12:54:09
【问题描述】:

我最近开始使用现货块实例,因为它可以保证一定时间。

当我以按需价格作为最高价格并在几个小时的阻塞时间内发送请求时,请求一直停留在容量不可用状态。

我从中午到晚上一直在尝试,请求一直处于容量不可用状态。

然后我尝试请求具有相同参数的常规 Spot 实例,请求立即得到满足。

有谁知道这种行为是否合理?如果是真的,那么我看不到点块实例的价值。

顺便说一下,我使用的是 us-west-2 地区。

提前感谢大家的建议。

【问题讨论】:

    标签: amazon-web-services amazon-ec2


    【解决方案1】:

    来源:http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-bid-status.html

    Holding:
    If one or more request constraints are valid but can't be met yet, 
    or if there is not enough capacity, the request goes into a holding
    state waiting for the constraints to be met. 
    The request options affect the likelihood of the request being fulfilled. 
    For example, if you specify a maximum price below the current Spot price, 
    your request stays in a holding state until the Spot price goes below
    your maximum price. If you specify an Availability Zone group,
    the request stays in a holding state until the Availability Zone constraint is met.
    

    也许您可以尝试另一个可用区?

    您也可以在https://aws.amazon.com/ec2/spot/pricing/ 上查看当前价格,看看您的出价是否在范围内。

    【讨论】:

    • 谢谢!我在 us-west-1 中尝试过,它立即得到了实现。这很可悲,因为 us-west-1 没有 EFS。我来看看如何跨地域挂载EFS
    • 选择另一个可用区而不是另一个区域怎么样?
    • @RongShen 官方表示,EFS 不能跨区域工作。您必须使用 my workaround 之类的东西,这需要在 EFS 区域中运行 HAProxy 的小型实例。然后,在区域之间配置 VPC 对等互连之后,使用该实例的 IP 地址作为挂载目标。请记住,区域之间的数据传输并非完全免费。在 us-west-1 和 us-west-2 之间,每 GB 传输 0.02 美元。 EFS 非常适合此解决方案,但您会注意到距离对延迟的影响。
    • @jarnohenneman 这是一个很好的建议。我的测试显示选择所有可用区也可以
    • @Michael-sqlbot 非常感谢您的解决方法!我没有找到任何跨区域挂载 EFS 的好方法。您的方式可以挽救生命
    猜你喜欢
    • 1970-01-01
    • 2019-12-01
    • 2017-12-28
    • 2020-05-24
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多