On Mar 14, 11:00 pm, Jeff Schnitzer <[email protected]> wrote: > On Wed, Mar 14, 2012 at 4:28 AM, Tapir <[email protected]> wrote: > > > On Mar 14, 1:17 pm, Gopal Patel <[email protected]> wrote: > >> you mean, always have one instance more than required ? ( who is going to > >> pay for that ? ) , and is not minimum idle instance same thing ? > > > It is different with the normal resident instance. > > It is an instance to handle requests only at the time of the situation > > "no available instances and need create a new instance", > > so that many "Cold Starts" can be avoided. > > This is pretty much exactly what setting minimum idle instances does. > Requests are preferentially routed to dynamic instances rather than > resident instances. > > The problem is, something in the scheduler is broken. Instead of > routing requests to the idle instance, GAE prefers to route requests > to a fresh instance, causing the user to wait while an instance warms > up. That setting is probably best described as "minimum useless > instances". Maybe somebody took the "minimum _idle_ instances" label > too literally ;-) > > This is the behavior I observed a week or two ago. Hopefully it will > be fixed. Doesn't sound like it has been so far.
Yes, here is usual case of the scheduler do it wrong: - one resident instance and it is handling a request and the handling is expected to be finished in 0.3 second. - a new request comes, the scheduler prepares to create and initialize a new instance, this need about 15 seconds to finish. - ok, now the scheduler do a wrong job, it let the new request wait for 15 seconds and be handled by the new instance. It is TOTALLY WRONG! The scheduler should let the resident instance handle the new request, too! So it seems the problem is the scheduler maintain a request queue for every instance. It is not a good implementation. The scheduler should maintain a request queue for every app! > > Jeff -- 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.
