简体   繁体   English

在Google Compute Engine上使用预先管理的VM

[英]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实例进行弹性搜索服务,并面临一些疑问,如下所示: -

  1. Is 30sec window enough to store data from a preemptive elastic search instance to a stable VM? 30秒窗口是否足以将抢先弹性搜索实例中的数据存储到稳定的VM?

  2. How to save the state of one VM that is ending and restore it to other? 如何保存一个正在结束的VM的状态并将其恢复到其他?

  3. 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.

相关问题 Elasticsearch 5.2.2在谷歌计算引擎上启动时出现问题 - Elasticsearch 5.2.2 trouble starting on google compute engine Kibana 4.6.x无法在Google计算引擎上启动 - Kibana 4.6.x not starting on Google compute Engine 如何配置用于在Google Compute Engine上备份Elasticsearch数据的结构? - How can I configure a structure for backing up elasticsearch data on Google Compute Engine? 如何访问安装在GCP Compute Engine实例上的Elastic Search? - How to access Elastic Search installed on GCP Compute Engine instance? 适用于StatefulSet的Google Kubernetes引擎上的ReadWriteMany存储 - ReadWriteMany storage on Google Kubernetes Engine for StatefulSets 弹性 APM 错误 | 谷歌 Kubernetes 引擎 - Elastic APM Error | Google Kubernetes Engine Google App Engine Flex上的Elasticsearch部署 - Elasticsearch deployment on google app engine flex 在3个VM上部署Elasticsearch集群 - Deploying elasticsearch cluster on 3 vms 如何在 Google Kubernetes 引擎中部署单节点 elasticsearch 集群? - How to deploy a single node elasticsearch cluster in Google Kubernetes engine? 如何配置filebeat和logstash? 3个虚拟机 - How to configure filebeat and logstash? 3 VMs
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM