How do I set maximum total instances to 1 ? OR How do I run my app for free for 24 hrs a day ?

116 views
Skip to first unread message

Prashant Gupta

unread,
Sep 7, 2011, 4:14:01 AM9/7/11
to google-a...@googlegroups.com
Hi,

I have an app with very low traffic and I won't be able to go for payed account unless and untill my app starts generating some revenue. With new pricing scheme my app will face a serious problem. There is no way to set Total Maximum Instance to 1 so there is no way to run the app for free for 24hrs with only "24 (free) Instance Hours". Does that mean that I will have to shut down my app ? Does Google have any solution for low traffic app like mine ?

Thanks,
Prashant

Gerald Tan

unread,
Sep 7, 2011, 5:12:04 AM9/7/11
to google-a...@googlegroups.com
I believe even if you have additional instances spawned for you, you are only charged for 1 instance (which should be your max idle instance setting) + active instances, which should be a very small number. Now you will see either one of two situations:

1) You have enough time when there are 0 instances up to make up for the active instance numbers, in which case your app should have no problem serving requests all day
2) You have an instance up all the time, in which case your app will be automatically shutdown when you run out of quota near the end of the billing day, probably for around 30mins to an hour depending on your active instance time, until the daily quota resets.

Per

unread,
Sep 7, 2011, 7:49:01 AM9/7/11
to Google App Engine
I changed my QA environment down from the always-on option, and set
max-idle==1, and I set the pending latency to 300ms.

The instance was up for 24h (restarted about 11h ago the last time):
It's just a QA box, but the cron jobs run and seem to keep it alive
well. E.g. no latency either.

My charge under the new pricing regime is 1ct for the day. Even if
there were a bit more load, I expect additional instances would get
spun up and down again pretty quickly, and not cost me (or you) much.
All good!

Cheers,
Per

Daniel Florey

unread,
Sep 7, 2011, 8:29:29 AM9/7/11
to google-a...@googlegroups.com
But the question remains: is there a way to tell GAE not to use more than one active instance? 
I'd prefer for my free apps to be sure that one instance is up and running for 24hours. How can I prevent any additional instances to be started?

Gopal Patel

unread,
Sep 7, 2011, 9:29:40 AM9/7/11
to google-a...@googlegroups.com
you cant. the option is only for maximum idle instance. it took me a lot of time and graph to grasp the idea of maximum idle instance. lol.

i would rather like maximum total instance option which can be set to any number from 1 to infinite. would and like to use latency to actually 
control the cost. 

On Wed, Sep 7, 2011 at 5:59 PM, Daniel Florey <daniel...@gmail.com> wrote:
But the question remains: is there a way to tell GAE not to use more than one active instance? 
I'd prefer for my free apps to be sure that one instance is up and running for 24hours. How can I prevent any additional instances to be started?

--
You received this message because you are subscribed to the Google Groups "Google App Engine" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine/-/VfNe-bCIdKoJ.

To post to this group, send email to google-a...@googlegroups.com.
To unsubscribe from this group, send email to google-appengi...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.

Daniel Florey

unread,
Sep 8, 2011, 5:31:02 AM9/8/11
to google-a...@googlegroups.com
Will this be possible before the new pricing model takes effect?
I've heard that other options will be provided before the new billing starts...

Reply all
Reply to author
Forward
0 new messages