如何自动重启GCE可抢占实例? [英] How do I automatically restart a GCE preemptible instance?

查看:64
本文介绍了如何自动重启GCE可抢占实例?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何自动重启可抢占的Google Compute Engine实例?我只有一个不需要100%正常运行时间的实例,但是我想在数据中心再次卸载后重新启动.我尝试自动重新启动的实例/服务器具有自己的启动盘,每次启动时都希望使用该启动盘.

How do I automatically restart a preemptible Google Compute Engine instance? I only have one instance that doesn't need 100% uptime but that I would like to restart once the data center becomes unloaded again. The instance/server that I'm trying to automatically restart has its own boot disk that I'd like to use each time it restarts.

推荐答案

您可以尝试使用

You could try using Instance Group Manager to set up a pool of size 1. It will then try to re-create instances after they are preempted.

您应该意识到,无法保证实例的容量.正如文档所说:

You should be aware that there is no guarantee that there is going to be capacity for your instance. As the docs say:

可抢占的实例可从一定数量的Compute Engine资源中获得,并且可能并不总是可用.

Preemptible instances are available from a finite amount of Compute Engine resources, and might not always be available.

这篇关于如何自动重启GCE可抢占实例?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆