简体   繁体   English

EC2竞价型实例容量池

[英]EC2 Spot Instance capacity pool

I understand that spot instances are terminated if the bid price is exceeded, and that they can't launch if there is no capacity to do so or the instance limit is reached. 我知道,竞价型实例会在超出出价的情况下终止,并且如果没有能力启动或达到实例数限制,它们将无法启动。 I've not seen them terminated due to over-subscription before. 我之前还没有看到它们因订阅过多而终止。 Used AWS CLI: 使用的AWS CLI:

aws ec2 request-spot-instances --spot-price "0.8" --instance-count 1 --type "one-time" --launch-specification c:\path\to\spot-instance-spec.json

The r4.4xlarge linux spot launched successfully in (my) eu-west-1b, then terminated and the status in the spot request is: r4.4xlarge linux站点在(我)eu-west-1b中成功启动,然后终止,该站点请求中的状态为:

instance-terminated-capacity-oversubscribed: Your Spot instance was terminated as there is no more unused capacity available in this pool.

Does anyone know what this means specifically? 有人知道这是什么意思吗? Is a pool just the AZ? 泳池只是AZ吗? Is it down to more expensive spots? 是下降到更昂贵的景点吗? Is it due to on-demands being launched? 是由于按需发布吗?

Your Spot Instances continue to run as long as your maximum price is at or above the Spot price, there is available capacity for your instance type, and you don't terminate the instance. 只要最高价格等于或高于竞价价格,您的竞价型实例就会继续运行,您的实例类型有可用的容量,并且您不会终止实例。 If a change in the Spot price or available capacity requires Amazon EC2 to terminate your Spot Instances, the Spot request goes into a terminal state. 如果竞价价格或可用容量的变化要求Amazon EC2终止竞价型实例,则竞价请求将进入终端状态。 For example, if your price equals the Spot price but Spot Instances are not available, the status code is instance-terminated-capacity-oversubscribed. 例如,如果您的价格等于竞价价格,但竞价型实例不可用,则状态码为实例终止容量超额预定。 A request also goes into the terminal state if you cancel the Spot request or terminate the Spot Instances. 如果您取消竞价请求或终止竞价型实例,则请求也将进入终端状态。

Its mentioned here in AWS Doc, and also check for limitation of spot request.For some instance there is a limit beyond that it cant be launched. 它在AWS Doc中已在此处提到,并且还检查了竞价请求的限制。在某些情况下,存在无法启动的限制。 http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-bid-status.html http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-bid-status.html

http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-resource-limits.html http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-resource-limits.html

The AWS documentation now has a definition of Spot instance pool: AWS文档现在具有竞价型实例池的定义:

Spot Instance pool – A set of unused EC2 instances with the same instance type, operating system, Availability Zone, and network platform. 竞价型实例池–一组具有相同实例类型,操作系统,可用区和网络平台的未使用的EC2实例。

Source: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-spot-instances.html 资料来源: https : //docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-spot-instances.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM