动态后端可以在 Google App Engine 中动态启动吗?
我知道这个问题以前已经被问过,但我一直无法找到明确的答案。
我想使用动态后端来处理添加到默认推送队列的任务。我更喜欢使用后端,因为我需要额外的内存(1g vs 128m)
问题如何动态后端是否在 Google App Engine 中启动以及启动和停止 Google App引擎后端都表明这不能以编程方式完成,而文档和GAE 问题5695 都表明这是可以做到的。
如果是的话 - 怎么办? (我想要的行为是,动态后端在任务添加到队列时启动,并在队列为空时停止。)
I know the question has been asked before but I have not been able to find a definite answer.
I would like to use a dynamic backend to process tasks added to the default push queue. I would prefer to use a backend since I need the extra memory (1g vs 128m)
The questions How do dynamic backends start in Google App Engine and Starting and stopping Google App Engine backends both suggest that this cannot be done programatically while the documentation and GAE issue 5695 both suggests it can be done.
If yes - how? (The behavior I would like is that the dynamic backend starts when a task is added to the queue and stops when the queue is empty.)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
驻留后端必须手动启动和停止。动态后端在收到 HTTP 请求时自动启动,并在几分钟空闲时间后关闭。
要将任务发送到特定后端,请指定一个目标< /a>:
Resident backends have to be started and stopped manually. Dynamic backends start automatically when they receive an HTTP request, and shut down after a few minutes of idle time.
To address a task to a particular backend, specify a target: