Hi Deepak, welcome to App Engine! If you are using a free application there is no official way to do this (I'm sure some folks can chime in from the list on the unofficial ways to do this). If you opt in a paid app, you'll be able to choose the X number of idle instances. This basically means App Engine will always keep X instances running (even with no requests) so you won't have to suffer through startup times the first time you hit an app after a long time with a hit. This is currently handled by "Always-On" which basically does the same thing but you don't get to choose how many idle instances you want.
Hope that helps, Greg On Mon, Sep 5, 2011 at 3:54 PM, Deepak Singh <[email protected]>wrote: > Hi Greg, > > I am a new comer to GAE despite being aware of new pricing model. > I have my application @ metasearchprodenv.appspot.com. > > At the time of loading the application, a method, say loadingMethod, is > called which internally makes 4 web service call one-by-one and takes around > 40 sec in total and then goes to finish. > So what i observe is when there is no traffic for say 1 hour and i hit the > url, it loads the application again from scratch and calls that > loadingMethod and then loads the application on the client which gives user > a long waiting time for application to load on client machine. > > And it happens every time i hit the url if there was no instance ready > before. > > So i think creating a new instance is all about initialising all the > classes of application from scratch. Right ? > > If it is so, let me know how can i optimise the application so user does > not have to wait long. > > Thanks > > > On Tue, Sep 6, 2011 at 12:51 AM, Gregory D'alesandre <[email protected]>wrote: > >> I'm not sure I completely understand the question, but if you are serving >> no requests for a day you will have no instance usage at all. If you serve >> 1 request, you'll likely get 1 instance spun up to serve the request, then >> after you have served the request the instance will go away after 15 >> minutes. This is the behavior you should be seeing today. >> >> I hope that helps explain it, if I misunderstood the question please let >> me know. >> >> Greg >> >> >> On Mon, Sep 5, 2011 at 11:14 AM, James Gilliam <[email protected]>wrote: >> >>> After software update no instances are running. Once an instance is >>> created it never goes below 1. Why can't the the minimum instance be >>> zero instead of 1? Forget it, GAE will just cut free instance hours. >>> >>> On Sep 5, 2:25 am, saintthor <[email protected]> wrote: >>> > if no request to the app for a whole day, the instace time will be 24 >>> > hours? >>> >>> -- >>> You received this message because you are subscribed to the Google Groups >>> "Google App Engine" group. >>> To post to this group, send email to [email protected]. >>> To unsubscribe from this group, send email to >>> [email protected]. >>> For more options, visit this group at >>> http://groups.google.com/group/google-appengine?hl=en. >>> >>> >> -- >> You received this message because you are subscribed to the Google Groups >> "Google App Engine" group. >> To post to this group, send email to [email protected]. >> To unsubscribe from this group, send email to >> [email protected]. >> For more options, visit this group at >> http://groups.google.com/group/google-appengine?hl=en. >> > > -- > You received this message because you are subscribed to the Google Groups > "Google App Engine" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/google-appengine?hl=en. > -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
