Re: [google-appengine] Kill back end instance when not in use - php module

21 views
Skip to first unread message

Alex Martelli

unread,
Jun 19, 2015, 5:27:47 PM6/19/15
to google-a...@googlegroups.com
You can configure the "backend" module with *basic scaling* and an idle_timeout as short as you wish -- for all details, see https://cloud.google.com/appengine/docs/php/modules . Basic scaling means that the instance is started when the module receives a request, the request can run indefinitely, and the instance is evicted when it has been idle for over idle_timeout (the default is 5 minutes) -- seems a pretty good fit for your use case.


Alex


On Thu, Jun 18, 2015 at 5:50 PM, Flav Ible <flav...@gmail.com> wrote:
Hey guys, so i have a module that is used as the back end and it is constantly running eating up my backend instance hours.

I only need it to start at 12:30 am every day and then shutdown when the task queue is empty.
The tasks currently take 1-2 min and there aren't too many of them so it will be done by 1-2 am. 

There must be a way to achieve this dynamically?

I would settle for stop at this time and start at this time if it isn't possible to be more intricate.

Thanks in advance guys,

George - Flavible

--
You received this message because you are subscribed to the Google Groups "Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-appengi...@googlegroups.com.
To post to this group, send email to google-a...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/fbd127e8-f717-4e6a-ba32-9834cf498a74%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages