是否可以在某些时间关闭VM托管google-cloud-composer的主机? [英] Is it possible to turn off the VM´s hosting the google-cloud-composer at certain hours?

查看:86
本文介绍了是否可以在某些时间关闭VM托管google-cloud-composer的主机?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

为了减少与运行google-cloud-composer相关的账单,我想知道是否有可能在特定时间关闭运行虚拟环境的VM实例的可能性。例如:我们的大多数DAG都在早晨或下午运行,因此我们希望在晚上甚至可能在午间关闭VM。我知道我们可以从Google云控制台手动禁用环境,但是找到一种自动执行此操作的方法非常好

In order to reduce the billing associated of running the google-cloud-composer, I am wondering about the possibility to turn off the VM instances that run the Virtual Environment at certain hours. For example: Most of our DAG´s run either in the morning or the afternoon, so we would like to turn off the VM´s during the night, or even during mid-day if is it possible. I know we can disable the environments manually from the Google cloud console, but it would be great to find a way to do this automatically

谢谢!

推荐答案

不幸的是,无法使用Google Cloud Platform以编程方式进行配置。最好的选择是从另一个主机作为cronjob运行脚本,当不使用Composer环境时,该脚本将打开或关闭Composer环境。

Unfortunately there is no way to have this configured programatically using the Google Cloud Platform. Your best option for this would be to have a script run as a cronjob from another host that will turn up or turn down the Composer environment when it is not in use.

这篇关于是否可以在某些时间关闭VM托管google-cloud-composer的主机?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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