重新启动 EC2 实例时会发生什么?
当我重新启动 EC2 实例时,我是否会再次获取初始映像,或者保留重新启动前的硬盘状态?
计费会发生什么情况,该小时是否重新开始,或者我是否继续使用重新启动时所在的小时的一部分?
When I reboot an EC2 instance, do I get the initial image again, or is the state of the hard disk before the reboot kept?
And what happens with billing, does the hour start again, or do I continue with the fraction of the hour I was in when I rebooted?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
重新启动实例就像重新启动 PC。 硬盘不受影响。 您不会返回到映像的原始状态,但硬盘的内容是重新启动之前的内容。
重新启动与计费无关。 计费在您实例化映像时开始,在您终止映像时停止。 中间重启没有任何效果。
Rebooting an instance is like rebooting a PC. The hard disk isn't affected. You don't return to the image's original state, but the contents of the hard disks are those before the reboot.
Rebooting isn't associated with billing. Billing starts when you instantiate an image and stops when you terminate it. Rebooting in between hasn't any effect.
重新启动可保持磁盘完好无损。
如果您关闭实例并启动新实例,磁盘将重置为其初始状态。
这不适用于 EBS 磁盘,即使在关闭期间,EBS 磁盘仍然存在。
Rebooting keeps the disks intact.
If you shut down the instance and power up a new one, the disks will be reset to their initial states.
This doesn't apply to the EBS disks, which persist even across shutdowns.
根据 AWS 文档:< /强>
此外,他们建议:
As per AWS Documentation:
Further, they recommend:
当您重新启动实例时,它将保持相同的虚拟机管理程序并重新启动虚拟机,就像正常的 Linux 重新启动一样。
如果您创建了具有临时块存储的虚拟机,则在重新启动实例时不会丢失临时存储。
如上所述,重启不会影响计费
When you rebooting an instance, it will keep remains same hypervisor and restart the VM just like normal Linux reboot.
If you created a VM with ephemeral block store, then you would not lose the ephemeral storage when you restart the instance.
As mentioned above, rebooting will not affect the billing
转到实例并重新启动。 我刚刚这样做了,我的所有状态和数据都完好无损。 等待几分钟,一切恢复正常。
go to instance and reboot. I just did and all my states and the data were intact. Wait for a few minutes before everything comes back to normal.