Warm tip: This article is reproduced from serverfault.com, please click

其他-使用Google Cloud Schedulers自动关闭和启动GCP

(其他 - GCP auto shutdown and startup using Google Cloud Schedulers)

发布于 2019-11-13 05:33:05

我想使用Google Cloud Scheduler在Google Cloud Platform中启动/停止一组Compute引擎实例。我该怎么做?

Questioner
anXler
Viewed
11
Chris32 2020-09-02 21:02:00

为了使用云调度程序,你可以按照启动和停止计算引擎谷歌本教程中或该其他

我不会在此处复制粘贴所需的代码,因为该教程非常完整,但是我将在此处继续执行以下步骤。

  1. 设置你的Compute Engine实例
  2. 部署入门级Cloud Function。你可以在这里看到一个例子
  3. 部署停止云功能。你可以在这里看到一个例子
  4. 设置Cloud Scheduler作业

如果你需要本教程的任何帮助,请告诉我!