Google cloud platform 我如何安排应用程序在谷歌云中运行?

Google cloud platform 我如何安排应用程序在谷歌云中运行?,google-cloud-platform,gcloud,gsutil,Google Cloud Platform,Gcloud,Gsutil,在AWS上,我可以运行云形成脚本来完成周末关机或运行EMR作业等任务 如果不创建一个小实例作为任务管理器,我如何在google上调度任务?CloudFormation的替代方案是google Cloud Deployment manager。 它们非常相似 作为记录,您可以找到AWS服务和GCP服务的映射。CloudFormation的替代方案是Google Cloud Deployment Manager。 它们非常相似 作为记录,您可以找到AWS服务和GCP服务的映射。如果我没有弄错的话

在AWS上,我可以运行云形成脚本来完成周末关机或运行EMR作业等任务


如果不创建一个小实例作为任务管理器,我如何在google上调度任务?

CloudFormation的替代方案是google Cloud Deployment manager。 它们非常相似


作为记录,您可以找到AWS服务和GCP服务的映射。

CloudFormation的替代方案是Google Cloud Deployment Manager。 它们非常相似


作为记录,您可以找到AWS服务和GCP服务的映射。

如果我没有弄错的话,App Engine允许您使用,它基本上可以根据您的目的进行配置。但它需要一些编程语言的知识,如Go、PHP、Java或Python。

如果我理解正确,AppEngine允许您使用,基本上可以根据您的需要进行配置。但是它需要一些编程语言的知识,如Go、PHP、Java或Python。

方法1:

如何安排机器仅在特定时间段运行 请参考gcloud计算命令和

然后,crontab-e按预期添加以下任务,例如:

00 06 * * * /usr/bin/gcloud compute instances start instance-1
00 07 * * * /usr/bin/gcloud compute instances stop instance-1
00 06 * * * /usr/bin/gcloud compute instance-groups managed resize instance-group-1 --size=1
00 07 * * * /usr/bin/gcloud compute instance-groups managed resize instance-group-1 --size=0
方法2:

建议您使用谷歌容器引擎

然后是crontab-e 按预期添加以下任务,例如:

00 06 * * * /usr/bin/gcloud compute instances start instance-1
00 07 * * * /usr/bin/gcloud compute instances stop instance-1
00 06 * * * /usr/bin/gcloud compute instance-groups managed resize instance-group-1 --size=1
00 07 * * * /usr/bin/gcloud compute instance-groups managed resize instance-group-1 --size=0

您需要将任务放入vm实例中,并从刚才创建的实例创建一个模板实例,然后基于该实例模板创建一个实例组

如何安排机器仅在特定时间段运行 请参考gcloud计算命令和

然后,crontab-e按预期添加以下任务,例如:

00 06 * * * /usr/bin/gcloud compute instances start instance-1
00 07 * * * /usr/bin/gcloud compute instances stop instance-1
00 06 * * * /usr/bin/gcloud compute instance-groups managed resize instance-group-1 --size=1
00 07 * * * /usr/bin/gcloud compute instance-groups managed resize instance-group-1 --size=0
方法2:

建议您使用谷歌容器引擎

然后是crontab-e 按预期添加以下任务,例如:

00 06 * * * /usr/bin/gcloud compute instances start instance-1
00 07 * * * /usr/bin/gcloud compute instances stop instance-1
00 06 * * * /usr/bin/gcloud compute instance-groups managed resize instance-group-1 --size=1
00 07 * * * /usr/bin/gcloud compute instance-groups managed resize instance-group-1 --size=0

您需要将任务放入vm实例中,并从刚创建的实例创建一个模板实例,然后基于该实例模板创建一个实例组

这没有帮助,我如何安排机器仅在特定时间段运行。我在部署管理器中看不到这些选项。为什么不在个人脚本中使用Cron服务呢?这没有帮助,我如何安排机器只在特定时间段运行。我在部署管理器中看不到这些选项。为什么不在个人脚本中使用Cron服务呢?