[英]Working with pre emptive VMs on Google Compute Engine
I'm trying to work with multiple Pre-emptive VM instances on Google Compute Engine for elastic search service and facing some doubts as follows:- 我正在尝试使用Google Compute Engine上的多个抢先VM实例进行弹性搜索服务,并面临一些疑问,如下所示: -
Is 30sec window enough to store data from a preemptive elastic search instance to a stable VM? 30秒窗口是否足以将抢先弹性搜索实例中的数据存储到稳定的VM?
How to save the state of one VM that is ending and restore it to other? 如何保存一个正在结束的VM的状态并将其恢复到其他?
Is there an alternative to Google Autoscaler? Google Autoscaler有替代品吗?
You could try running a 'shutdown-script' to create a snapshot with the command: 您可以尝试运行'shutdown-script'来使用以下命令创建快照:
gcloud compute disks snapshot [disk_name] --zone=[zone] --snapshot-names=[snapshot_name] gcloud计算磁盘快照[disk_name] --zone = [zone] --snapshot-names = [snapshot_name]
Although you should manage to have different snapshot names. 虽然您应该设法拥有不同的快照名称。 Using this you would have a backup of the current VM state, but there is no automatic way to create another VM from this snapshot when is created.
使用此选项可以备份当前VM状态,但创建时没有自动方法从此快照创建另一个VM。
As far as I know there is no predefined alternative that do the same as the autoscaler. 据我所知,没有与autoscaler相同的预定义替代方案。 Although you could also try using the shutdown script to starts a VM.
虽然您也可以尝试使用关闭脚本来启动VM。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.