Reputation: 779
I have CPU-heavy simulation tasks I would like to execute in the following manner using Google App Engine and Google Compute Engine:
I am having my difficulties with 4 and 5. How can I manage to "push" a computation task to a Compute Engine VM instance from a GAE servlet? And how can GAE and VM instance communicate afterwards?
(While I am experienced with GAE, I am totally new to Compute Engine and have my difficulties entirely grasping the Compute Engine approach to problems like mine)
Thanks in advance!
Upvotes: 1
Views: 426
Reputation: 1016
If you just want to spin up the instance to perform one task the easiest would probably be to provide the task in the form of a startup script as explained here
The GCE instance could report back the status of the work by issuing http requests to GAE.
Alternatively you could communicate between GAE and GCE using sub/pub. In that case - and unless you assume that the user has the browser open showing a progress page and that this page pulls GAE for updates - you would probably need to set up a cron job on GAE to check for finished tasks and act accordingly.
Upvotes: 1