简体   繁体   English

为什么我的现货申请被自动取消了?

[英]Why did my spot request get cancelled automatically?

I had requested a Spot instance for a single instance of t2.micro.我已经为 t2.micro 的单个实例请求了一个 Spot 实例。 An instance was assigned and the request was active.分配了一个实例并且请求处于活动状态。 A few days later, after the instance ran for 9 days, the spot request was "cancelled".几天后,实例运行 9 天后,Spot 请求被“取消”。 The status of the request was cancelled and the instances were terminated.请求的状态已取消,实例已终止。

Questions:问题:

  1. Why was the request cancelled?为什么请求被取消? I had set a normal bid price that of a much higher value than the spot price.我设定了一个比现货价格高得多的正常投标价格。
  2. I checked the records, and it shows event: bitChange that lead to the request to move to status closed .我检查了记录,它显示 event: bitChange导致请求移至 status closed Even if the bid price changed, I'm pretty sure it did not cross my bit price.即使出价发生了变化,我也很确定它没有超过我的比特价。 as it was too high.因为它太高了。
  3. What exactly happened?究竟发生了什么? Why did the instance move to close?为什么实例要关闭? Can someone please explain me?有人可以解释一下吗?

在此处输入图像描述

As a best practice for Spot, don't set a maximum price at all.作为 Spot 的最佳做法,根本不要设置最高价格 it will be set to on-demand price by default and Spot prices can't go above on-demand prices so you won't be interrupted because of price change.它将默认设置为按需价格,现货价格不能高于按需价格,因此您不会因为价格变化而中断。

The only reason you will be interrupted is when EC2 needs this capacity back for on-demand customers, which is the reason for Spot discounted prices.您将被中断的唯一原因是 EC2 需要为按需客户恢复此容量,这就是 Spot 折扣价格的原因。

Use Auto Scaling groups and Spot Fleet to launch and maintain a target capacity, and to automatically request instances to replace any that are interrupted.使用Auto Scaling 组Spot 队列来启动和维护目标容量,并自动请求实例以替换任何中断的实例。

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

相关问题 取消后如何删除 Spot 队列请求? - How to remove a Spot Fleet Request after it is cancelled? 为什么竞价型实例(EC2)从cancelled_terminate更改为Cancelled? - Why do Spot Instances(EC2) change from cancelled_terminating to cancelled? 为什么我的 mongodb.sock 文件的权限会自动改变? - Why did the permissions of my mongodb .sock file change automatically? 如何从 Spot 实例请求中获取 Spot InstanceID? - How can I get Spot InstanceID from a Spot Instance Request? 为什么我的 #AWS EC2 Spot 实例请求卡在待评估状态? - Why do my #AWS EC2 spot instance requests get stuck in pending-evaluation status? 如何为我的 ElasticBeanstalk 环境获取 spot 实例 - How to get spot instances for my ElasticBeanstalk Environment CloudFormation模板 - 获取Spot-Fleet-Request ID的任何方式? - CloudFormation Template - any way to get a Spot-Fleet-Request ID? 为什么我得到 CORS 错误原因:CORS 请求没有成功 - Why do I get CORS Error Reason: CORS request did not succeed 调整 AWS ECS Spot 请求 - Adjusting AWS ECS spot request 我的AWS CloudFormation堆栈的Spot Fleet资源是否可以是“请求”而不是“维护”-ed? - Can my AWS CloudFormation stack's Spot Fleet resource be a “request” instead of “maintain”-ed?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM