"Max Idle Instances" == 1, now my app how 2 instances running for a quite long while

52 views
Skip to first unread message

Tapir

unread,
Oct 1, 2011, 8:07:27 PM10/1/11
to Google App Engine
Instances help QPS* Latency* Requests Errors Age Memory
Availability
0.083 95.2 ms 57 0 0:16:14 83.9 MBytes Dynamic Icon Dynamic
0.000 0.0 ms 1 0 0:18:28 79.9 MBytes Dynamic Icon Dynamic

GAE docs says:
(http://code.google.com/appengine/docs/adminconsole/
performancesettings.html#Setting_the_Number_of_Idle_Instances)
... You will not be charged for instances over the specified maximum.

Google will only charge me one of the running instances?

Tapir

unread,
Oct 1, 2011, 8:18:25 PM10/1/11
to Google App Engine


On Oct 2, 8:07 am, Tapir <tapir....@gmail.com> wrote:
> Instances help QPS*     Latency*        Requests        Errors  Age     Memory
> Availability
> 0.083   95.2 ms         57      0       0:16:14         83.9 MBytes     Dynamic Icon Dynamic
> 0.000   0.0 ms  1       0       0:18:28         79.9 MBytes     Dynamic Icon Dynamic

My app just encountered a long slow loading: here is new instances
Instances help QPS* Latency* Requests Errors Age Memory
Availability
0.050 14589.0 ms 1 0 0:00:26 80.8 MBytes Dynamic Icon Dynamic
0.000 0.0 ms 2 0 0:31:51 80.0 MBytes Dynamic Icon Dynamic

You will find gae instance scheduler is not willing to using the idle
instance, but tries to create an instance and let the visitor wait 15
seconds to load the page.
There MUST be a big problem in the instance schedule!

Tapir

unread,
Oct 1, 2011, 8:23:37 PM10/1/11
to Google App Engine


On Oct 2, 8:18 am, Tapir <tapir....@gmail.com> wrote:
> On Oct 2, 8:07 am, Tapir <tapir....@gmail.com> wrote:
>
> > Instances help QPS*     Latency*        Requests        Errors  Age     Memory
> > Availability
> > 0.083   95.2 ms         57      0       0:16:14         83.9 MBytes     Dynamic Icon Dynamic
> > 0.000   0.0 ms  1       0       0:18:28         79.9 MBytes     Dynamic Icon Dynamic
>
> My app just encountered a long slow loading: here is new instances
> Instances help QPS*     Latency*        Requests        Errors  Age     Memory
> Availability
> 0.050   14589.0 ms      1       0       0:00:26         80.8 MBytes     Dynamic Icon Dynamic
> 0.000   0.0 ms  2       0       0:31:51         80.0 MBytes     Dynamic Icon Dynamic
>
> You will find gae instance scheduler is not willing to using the idle
> instance, but tries to create an instance and let the visitor wait 15
> seconds to load the page.
> There MUST be a big problem in the instance schedule!

Just found there is a type error in title, "how" should be "shows"

Tapir

unread,
Oct 1, 2011, 8:25:54 PM10/1/11
to Google App Engine


On Oct 2, 8:18 am, Tapir <tapir....@gmail.com> wrote:
> On Oct 2, 8:07 am, Tapir <tapir....@gmail.com> wrote:
>
> > Instances help QPS*     Latency*        Requests        Errors  Age     Memory
> > Availability
> > 0.083   95.2 ms         57      0       0:16:14         83.9 MBytes     Dynamic Icon Dynamic
> > 0.000   0.0 ms  1       0       0:18:28         79.9 MBytes     Dynamic Icon Dynamic
>
> My app just encountered a long slow loading: here is new instances
> Instances help QPS*     Latency*        Requests        Errors  Age     Memory
> Availability
> 0.050   14589.0 ms      1       0       0:00:26         80.8 MBytes     Dynamic Icon Dynamic
> 0.000   0.0 ms  2       0       0:31:51         80.0 MBytes     Dynamic Icon Dynamic
>
> You will find gae instance scheduler is not willing to using the idle
> instance, but tries to create an instance and let the visitor wait 15
> seconds to load the page.
> There MUST be a big problem in the instance schedule!

Another long loading, the instance scheduler is still not willing to
use the idle instance but lets the visitor wait for 12 seconds.

Instances help QPS* Latency* Requests Errors Age Memory
Availability
0.050 11925.0 ms 1 0 0:00:27 75.7 MBytes Dynamic Icon Dynamic
0.000 0.0 ms 2 0 0:41:08 80.0 MBytes Dynamic Icon Dynamic

Tapir

unread,
Oct 1, 2011, 8:29:38 PM10/1/11
to Google App Engine


On Oct 2, 8:25 am, Tapir <tapir....@gmail.com> wrote:
> On Oct 2, 8:18 am, Tapir <tapir....@gmail.com> wrote:
>
>
>
>
>
>
>
>
>
> > On Oct 2, 8:07 am, Tapir <tapir....@gmail.com> wrote:
>
> > > Instances help QPS*     Latency*        Requests        Errors  Age     Memory
> > > Availability
> > > 0.083   95.2 ms         57      0       0:16:14         83.9 MBytes     Dynamic Icon Dynamic
> > > 0.000   0.0 ms  1       0       0:18:28         79.9 MBytes     Dynamic Icon Dynamic
>
> > My app just encountered a long slow loading: here is new instances
> > Instances help QPS*     Latency*        Requests        Errors  Age     Memory
> > Availability
> > 0.050   14589.0 ms      1       0       0:00:26         80.8 MBytes     Dynamic Icon Dynamic
> > 0.000   0.0 ms  2       0       0:31:51         80.0 MBytes     Dynamic Icon Dynamic
>
> > You will find gae instance scheduler is not willing to using the idle
> > instance, but tries to create an instance and let the visitor wait 15
> > seconds to load the page.
> > There MUST be a big problem in the instance schedule!
>
> Another long loading, the instance scheduler is still not willing to
> use the idle instance but lets the visitor wait for 12 seconds.
>
> Instances help QPS*     Latency*        Requests        Errors  Age     Memory
> Availability
> 0.050   11925.0 ms      1       0       0:00:27         75.7 MBytes     Dynamic Icon Dynamic
> 0.000   0.0 ms  2       0       0:41:08         80.0 MBytes     Dynamic Icon Dynamic
I really don't understand why gae will create 2 instances for my app
even if I set the "Max Idle Instances" with 1.
In fact, my app runs better with one instances than 2 instances, under
the current instance scheduler implementation.

Tapir

unread,
Oct 1, 2011, 9:10:27 PM10/1/11
to Google App Engine


On Oct 2, 8:07 am, Tapir <tapir....@gmail.com> wrote:
> Instances help QPS*     Latency*        Requests        Errors  Age     Memory
> Availability
> 0.083   95.2 ms         57      0       0:16:14         83.9 MBytes     Dynamic Icon Dynamic
> 0.000   0.0 ms  1       0       0:18:28         79.9 MBytes     Dynamic Icon Dynamic

It even created 3 instances now:
Instances help QPS* Latency* Requests Errors Age Memory
Availability
0.133 235.1 ms 32 0 0:02:53 91.1 MBytes Dynamic Icon Dynamic
0.033 0.0 ms 1 0 0:00:05 51.2 MBytes Dynamic Icon Dynamic
0.000 0.0 ms 7 0 1:26:14 83.9 MBytes Dynamic Icon Dynamic

Tapir

unread,
Oct 1, 2011, 9:18:38 PM10/1/11
to Google App Engine


On Oct 2, 9:10 am, Tapir <tapir....@gmail.com> wrote:
> On Oct 2, 8:07 am, Tapir <tapir....@gmail.com> wrote:
>
> > Instances help QPS*     Latency*        Requests        Errors  Age     Memory
> > Availability
> > 0.083   95.2 ms         57      0       0:16:14         83.9 MBytes     Dynamic Icon Dynamic
> > 0.000   0.0 ms  1       0       0:18:28         79.9 MBytes     Dynamic Icon Dynamic
>
> It even created 3 instances now:
> Instances help QPS*     Latency*        Requests        Errors  Age     Memory
> Availability
> 0.133   235.1 ms        32      0       0:02:53         91.1 MBytes     Dynamic Icon Dynamic
> 0.033   0.0 ms  1       0       0:00:05         51.2 MBytes     Dynamic Icon Dynamic
> 0.000   0.0 ms  7       0       1:26:14         83.9 MBytes     Dynamic Icon Dynamic
New slow loading:
QPS* Latency* Requests Errors Age Memory Availability
0.050 10759.0 ms 1 0 0:00:41 75.8 MBytes Dynamic Icon Dynamic
0.000 0.0 ms 7 0 1:33:52 83.8 MBytes Dynamic Icon Dynamic

Jose Montes de Oca

unread,
Oct 6, 2011, 9:58:06 AM10/6/11
to google-a...@googlegroups.com
Hi,

I think you have a fundamental misconception here. Max Idle Instances != Max instances GAE will spin up. Max Idle Instances just means GAE is just going to charge you for 1 Idle instance al the time (even if you have more than 1 Idle instance)

If you believe your app has any problems, please file a production ticket here: http://code.google.com/p/googleappengine/issues/entry

Best,
Jose Montes de Oca
Reply all
Reply to author
Forward
0 new messages