我如何整合谷歌应用程序引擎,taks队列和谷歌计算引擎? [英] How do I integrate google app engine, taks queue and google compute engine?
问题描述
- Google应用引擎收到HTTP请求
- 由于HTTP请求,Google应用引擎将拉取任务排队
- 任务由自动缩放的Google计算引擎实例组接收
>
有人可以指示我如何设置自动扩展任务拉任务队列处理程序的解决方案吗?我的每项任务都需要大约一分钟的时间来处理我估计的数据。
GCE有一个称为autoscaler的新功能,您可以使用它要自动缩放一组GCE实例,此处的文档 GCE Autoscaler 。它应该适用于这种用例。
还有一个用于拉队列的REST API,您可以从应用程序引擎之外提取拉取队列。这将使您可以使用计算引擎从队列中提取任务。
I been trying to understand how I can setup the follow architecture on Google's cloud:
- Google app engine receives HTTP request
- Google app engine queues a pull task as a result of the HTTP request
- The task is received by a auto scaling google compute engine instance group
Are there solutions that someone can point me to how to setup a auto scaling task pull task queue handler? Each of my tasks will take approximately a minute to process I estimate.
GCE has a new feature called autoscaler that you can use to automatically scale a group of GCE instances, the documentation is here GCE Autoscaler. It should work well for this use case.
There's also a REST API for pull queues where you can pull from outside of app engine Pull Queue. That will let you pull tasks from the queue using compute engine.
这篇关于我如何整合谷歌应用程序引擎,taks队列和谷歌计算引擎?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!