How do I integrate google app engine, taks queue and google compute engine?

我的未来我决定 提交于 2019-12-12 03:16:20

问题


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.

回答1:


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.



来源:https://stackoverflow.com/questions/27571670/how-do-i-integrate-google-app-engine-taks-queue-and-google-compute-engine

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!