GCP 使用 Google Cloud Scheduler 自动关闭和启动 [英] GCP auto shutdown and startup using Google Cloud Schedulers

查看:20
本文介绍了GCP 使用 Google Cloud Scheduler 自动关闭和启动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I want to start/stop a set of Compute engine instances in Google Cloud Platform using Google Cloud Scheduler. How can I do it?

推荐答案

为了使用 Cloud Scheduler 启动和停止计算引擎,您可以按照 谷歌本教程或其他

In order to start and stop a Compute Engine using the Cloud Scheduler you can follow Google this tutorial, or this other

我不会在这里复制粘贴所需的代码,因为教程非常完整,但我会在此处继续执行要遵循的步骤.

I won’t be copy-pasting the required code here because the tutorial it's very complete but I will resume here the steps to follow.

  1. 设置您的 Compute Engine 实例
  2. 部署启动云功能.您可以在此处
  3. 部署停止云函数.您可以在此处
  4. 设置 Cloud Scheduler 作业

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

If you need any help with the tutorial please just let me know!

这篇关于GCP 使用 Google Cloud Scheduler 自动关闭和启动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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