Google Cloud中长时间运行的脚本 [英] Long running script in Google Cloud

查看:153
本文介绍了Google Cloud中长时间运行的脚本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一段基于NodeJs的代码,它不提供任何HTTP请求,但监视一些在线系统并发送报告电子邮件。
此代码由一个shell脚本运行,并保持24x7全天候运行。



哪种Google Cloud产品最适合承载?

我尝试使用App Engine,但在控制台闲置一小时后,控制台存在并且脚本停止运行。



我不确定如果计算引擎对此最好。我可以在AWS EC2中承载这个功能,它可以在那里工作......但是对Google很感兴趣。



任何提示都可以使用。



Thanks

解决方案

这可以通过在App Engine标准平台中运行的简单Python应用程序完成。 查看此帖以获取详细信息。


I have a piece of code, based on NodeJs, that does not serve any HTTP request, but monitors some online systems and sends report emails. This code is run by a shell script and keeps running 24x7.

Which Google Cloud offering is best suited to host this?

I tried with App Engine, but after one hour of console inactivity, the console exists and the script stops running.

I am not sure if Compute Engine would be best for this. I can host this in AWS EC2, it would work there... but wondering about Google.

Any tips appreciated.

Thanks

解决方案

This can be done with a simple Python app running in App Engine Standard Platform. See this post for details.

这篇关于Google Cloud中长时间运行的脚本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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