I can’t speak for Google…
But every time I ask people what they set their Latency and Idle instances to. (which is usually the problem)
No one ever sends along the Instances, and the Request per second graphs.
I’ll bet money that if you up the number of idle instances that your issues will go away.
--
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/-/Fxv51vEswg4J.
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.
Do you have a warm up handler configured in your Yaml?
If you don’t then the new instance has to warm up and handle a request. Specifying a Warm up that simply initializes some variables and logs an event “Warm up complete”.
Should fix your issue.
I don’t think you have “Platform issues” I think you have Google hasn’t documented all best practices issues.
--
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/-/bYRgRhlKZjoJ.
That would imply that your warm up takes more than 15 seconds. The only thing your warm up should do is initialize the instance and send out a “hello world”.
You may need to manage the order of your imports and make sure you don’t have redundant imports.
There are some threads in the archive about speeding up you imports to avoid these errors.
For Debugging this issue you should log “started import” “Finished import” so you can see which ones take the longest.
From: google-a...@googlegroups.com [mailto:google-a...@googlegroups.com] On Behalf Of Karl Rosaen
Sent: Sunday, January 15, 2012 1:08 PM
To: google-a...@googlegroups.com
Subject: Re: [google-appengine] Why are several production issues related to DeadlineExceededErrors being ignored?
Hi Brandon,
--
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/-/ZxEeWK55414J.
You can implement handlers in this directory to perform application-specific tasks, such as pre-caching application data.
Give me 35 minutes. I shot a video to talk about this topic, I thought that might be easier than the really long email J
From: google-a...@googlegroups.com [mailto:google-a...@googlegroups.com] On Behalf Of Karl Rosaen
Sent: Sunday, January 15, 2012 5:42 PM
To: google-a...@googlegroups.com
Subject: Re: [google-appengine] Why are several production issues related to DeadlineExceededErrors being ignored?
Yeah, actually we do warmup memcache for data the frontpage needs to render - under normal circumstances, performing these queries takes well under 15 seconds. According to the docs:
--
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/-/D0358Demz2cJ.
Snow is slowing down my internet… Maybe a little longer than 35 minutes YT says 45 min remaining…
http://www.youtube.com/watch?v=AJIvYBd-gnI
Hopefully this make it clearer.
I don’t think Google has a best practices guide (they should)
You don’t want max pending latency to be High, you can hit the time out.
You don’t want the Warm up to do anything other than initialized variables and load imports, and say “hello world”
I ramble a bit since I didn’t plan to shoot this today.
-Brandon
Requests have a 60s time limit, but from testing it seems that
Initialization has a 15s limit. I don't know if this is a bug, a feature,
or a flaw in my testing.
Also my "best practices" doesn't guarantee to fix everything, there could
still be a bug, but I was hoping that be eliminating the obvious causes we
might get closer to resolution.
-----Original Message-----
From: google-a...@googlegroups.com
[mailto:google-a...@googlegroups.com] On Behalf Of Alexis
Sent: Monday, January 16, 2012 1:30 AM
To: Google App Engine
Subject: [google-appengine] Re: Why are several production issues related to
DeadlineExceededErrors being ignored?
Thanks for the shot!
Here are some comments:
--
Although Python's interpreter is optimized to not import the same module multiple times, repeatedly executing an import statement can seriously affect performance in some circumstances.
I agree multiple imports is not supposed to be a problem, but I have seen it cause issues, or seen issues be resolved by not doing it.
Remember that the Google Implementation of Python has its own “Specialness” and what is true in traditional python is not always quite the same in GAE land.
From: google-a...@googlegroups.com [mailto:google-a...@googlegroups.com] On Behalf Of Karl Rosaen
Sent: Monday, January 16, 2012 7:32 AM
To: google-a...@googlegroups.com
--
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/-/7FTyQ34tagsJ.
If you have errors on M/S you are on your own.
Instances die early if you hit the soft memory limit. Likely if you have
load time issues you have memory usage issues as well.
-----Original Message-----
From: google-a...@googlegroups.com
[mailto:google-a...@googlegroups.com] On Behalf Of Cezary Wagner
Sent: Monday, January 16, 2012 2:37 PM
To: Google App Engine
M/S has Zero advantage at this point.
Also you are on M/S which has its own rules. Jump in to the modern world and
run on HR with the rest of us happy shiny people, rather than running on the
unsupported, failed experiment that M/S is.
-----Original Message-----
From: google-a...@googlegroups.com
[mailto:google-a...@googlegroups.com] On Behalf Of Cezary Wagner
Sent: Tuesday, January 17, 2012 1:43 AM
To: Google App Engine
Subject: [google-appengine] Re: Why are several production issues related to
DeadlineExceededErrors being ignored?
Kenneth,
--
You received this message because you are subscribed to the Google Groups
"Google App Engine" group.
I'm still calling BS on your explanation. And since you are on MS I can’t call BS on your uptime numbers, but here are mine From JeffProbst.com for the last 6 months.
Some of that 1 hour was my fault for updating code and doing a misconfiguration. And issues on 1/11 were a DNS change we made. All total we have had less than 30 minutes of GAE down time in 6 months.
And to the nay-sayers who will say “oh but you don’t have a ‘real’ app” my app has dependencies on django, memcache, datastore, and does Regular Expressions. That’s 90% of what any app is going to do. We also spin up and down a lot more than most sites since we serve as few as 100 visitors a day on a really slow day and as many as 400k on a big day.
I believe my GAE uptime for 6 months is at 99.99% with an average QoS that is more than acceptable (requests served in an average of 489ms with a peak of 818ms)
<<<<>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Here are my imports to prove I’m a “real” app
Os, datetime, hashlib,logging, pickle, re, time, zlib, urllib, wsgiref.handlers, cgi,cachepy,urlparse, memcache, urlfetch, webapp, apiproxy_errors, template
<<<<<<<<<<>>>>>>>>>>>>>>>>>>>
Uptime
99.98%
Downtime
1h
The average downtime length is 6m 40s
Number of downtimes
9
The longest downtime was 10m on 10/25/2011 11:29:06AM and the shortest was 5m on 07/19/2011 1:04:06AM
Status | From | To | Time |
|
| 01/13/2012 6:14:06AM | 01/19/2012 4:22:50PM | 6d 10h 8m 44s | |
| 01/13/2012 6:09:06AM | 01/13/2012 6:14:06AM | 5m | |
| 01/11/2012 1:54:06PM | 01/13/2012 6:09:06AM | 1d 16h 15m | |
| 01/11/2012 1:49:06PM | 01/11/2012 1:54:06PM | 5m | |
| 01/11/2012 1:44:06PM | 01/11/2012 1:49:06PM | 5m | |
| 01/11/2012 1:39:06PM | 01/11/2012 1:44:06PM | 5m | |
| 01/11/2012 1:34:06PM | 01/11/2012 1:39:06PM | 5m | |
| 01/11/2012 1:24:06PM | 01/11/2012 1:34:06PM | 10m | |
| 01/01/2012 11:59:08PM | 01/11/2012 1:24:06PM | 9d 13h 24m 58s | |
| 12/18/2011 2:19:09PM | 01/01/2012 11:49:06PM | 14d 9h 29m 57s | |
| 12/15/2011 9:09:17PM | 12/18/2011 2:04:06PM | 2d 16h 54m 49s | |
| 12/15/2011 6:54:20AM | 12/15/2011 8:59:06PM | 14h 4m 46s | |
| 12/15/2011 4:04:26AM | 12/15/2011 6:44:06AM | 2h 39m 40s | |
| 12/13/2011 6:04:35PM | 12/15/2011 3:54:06AM | 1d 9h 49m 31s | |
| 12/10/2011 1:39:08PM | 12/13/2011 5:54:06PM | 3d 4h 14m 58s | |
| 12/09/2011 11:24:09PM | 12/10/2011 1:24:06PM | 13h 59m 57s | |
| 12/08/2011 7:44:07AM | 12/09/2011 11:14:06PM | 1d 15h 29m 59s | |
| 12/05/2011 2:39:26PM | 12/08/2011 7:34:06AM | 2d 16h 54m 40s | |
| 12/04/2011 11:44:08AM | 12/05/2011 2:29:08PM | 1d 2h 45m | |
| 12/04/2011 3:39:06AM | 12/04/2011 11:34:06AM | 7h 55m | |
| 12/02/2011 3:44:12PM | 12/04/2011 3:19:06AM | 1d 11h 34m 54s | |
| 12/02/2011 4:24:09AM | 12/02/2011 3:34:06PM | 11h 9m 57s | |
| 12/02/2011 1:34:09AM | 12/02/2011 4:14:06AM | 2h 39m 57s | |
| 12/01/2011 5:44:11AM | 12/02/2011 1:24:06AM | 19h 39m 55s | |
| 11/29/2011 8:09:06PM | 12/01/2011 5:34:07AM | 1d 9h 25m 1s | |
| 11/29/2011 7:59:06PM | 11/29/2011 8:09:06PM | 10m | |
| 11/28/2011 6:14:09PM | 11/29/2011 7:59:06PM | 1d 1h 44m 57s | |
| 11/28/2011 9:44:09AM | 11/28/2011 6:04:06PM | 8h 19m 57s | |
| 11/27/2011 8:14:23AM | 11/28/2011 9:34:06AM | 1d 1h 19m 43s | |
| 11/26/2011 6:44:09AM | 11/27/2011 8:04:06AM | 1d 1h 19m 57s | |
| 11/18/2011 2:54:08PM | 11/26/2011 6:34:06AM | 7d 15h 39m 58s | |
| 11/18/2011 8:04:18AM | 11/18/2011 2:44:06PM | 6h 39m 48s | |
| 11/13/2011 6:59:13AM | 11/18/2011 7:54:11AM | 5d 54m 58s | |
| 11/13/2011 6:19:06AM | 11/13/2011 6:49:06AM | 30m | |
| 11/13/2011 6:14:06AM | 11/13/2011 6:19:06AM | 5m | |
| 11/11/2011 4:04:09AM | 11/13/2011 6:14:06AM | 2d 2h 9m 57s | |
| 11/03/2011 4:54:06PM | 11/11/2011 3:54:06AM | 7d 11h | |
| 11/03/2011 4:49:06PM | 11/03/2011 4:54:06PM | 5m | |
| 11/02/2011 4:19:10PM | 11/03/2011 4:49:06PM | 1d 29m 56s | |
| 11/02/2011 1:29:28PM | 11/02/2011 4:09:09PM | 2h 39m 41s | |
| 11/01/2011 3:44:07AM | 11/02/2011 1:19:06PM | 1d 9h 34m 59s | |
| 10/30/2011 6:09:19PM | 11/01/2011 3:29:06AM | 1d 9h 19m 47s | |
| 10/30/2011 12:59:07PM | 10/30/2011 5:59:06PM | 4h 59m 59s | |
| 10/27/2011 3:54:10PM | 10/30/2011 12:49:06PM | 2d 20h 54m 56s | |
| 10/26/2011 8:24:06AM | 10/27/2011 3:44:06PM | 1d 7h 20m | |
| 10/25/2011 11:39:06AM | 10/26/2011 8:09:09AM | 20h 30m 3s | |
| 10/25/2011 11:29:06AM | 10/25/2011 11:39:06AM | 10m | |
| 10/22/2011 2:34:16AM | 10/25/2011 11:29:06AM | 3d 8h 54m 50s | |
| 10/21/2011 7:59:10AM | 10/22/2011 2:24:07AM | 18h 24m 57s | |
| 10/21/2011 5:14:16AM | 10/21/2011 7:49:07AM | 2h 34m 51s | |
| 10/03/2011 5:09:08PM | 10/21/2011 5:04:06AM | 17d 11h 54m 58s | |
| 09/20/2011 4:14:08AM | 10/03/2011 4:59:06PM | 13d 12h 44m 58s | |
| 09/16/2011 3:04:11PM | 09/20/2011 4:04:06AM | 3d 12h 59m 55s | |
| 09/11/2011 9:24:25PM | 09/16/2011 2:54:07PM | 4d 17h 29m 42s | |
| 09/06/2011 4:29:06AM | 09/11/2011 9:14:14PM | 5d 16h 45m 8s | |
| 08/15/2011 7:54:13AM | 09/06/2011 4:14:06AM | 21d 20h 19m 53s | |
| 08/13/2011 7:34:08PM | 08/15/2011 7:44:06AM | 1d 12h 9m 58s | |
| 08/04/2011 9:14:08AM | 08/13/2011 7:24:06PM | 9d 10h 9m 58s | |
| 07/24/2011 2:44:23AM | 08/04/2011 9:04:06AM | 11d 6h 19m 43s | |
| 07/19/2011 1:09:06AM | 07/24/2011 2:34:07AM | 5d 1h 25m 1s | |
| 07/19/2011 1:04:06AM | 07/19/2011 1:09:06AM | 5m | |
| 07/19/2011 12:00:00AM | 07/19/2011 1:04:06AM | 1h 4m 6s |
Here is the Home Page serve time for the past 100 days.
Date/time | Avg. Response Time |
01/19/2012 12:00:00AM | 467 ms |
01/18/2012 12:00:00AM | 467 ms |
01/17/2012 12:00:00AM | 583 ms |
01/16/2012 12:00:00AM | 475 ms |
01/15/2012 12:00:00AM | 541 ms |
01/14/2012 12:00:00AM | 523 ms |
01/13/2012 12:00:00AM | 478 ms |
01/12/2012 12:00:00AM | 492 ms |
01/11/2012 12:00:00AM | 630 ms |
01/10/2012 12:00:00AM | 488 ms |
01/09/2012 12:00:00AM | 500 ms |
01/08/2012 12:00:00AM | 496 ms |
01/07/2012 12:00:00AM | 477 ms |
01/06/2012 12:00:00AM | 508 ms |
01/05/2012 12:00:00AM | 517 ms |
01/04/2012 12:00:00AM | 484 ms |
01/03/2012 12:00:00AM | 544 ms |
01/02/2012 12:00:00AM | 517 ms |
01/01/2012 12:00:00AM | 477 ms |
12/31/2011 12:00:00AM | 454 ms |
12/30/2011 12:00:00AM | 456 ms |
12/29/2011 12:00:00AM | 567 ms |
12/28/2011 12:00:00AM | 483 ms |
12/27/2011 12:00:00AM | 465 ms |
12/26/2011 12:00:00AM | 471 ms |
12/25/2011 12:00:00AM | 468 ms |
12/24/2011 12:00:00AM | 460 ms |
12/23/2011 12:00:00AM | 495 ms |
12/22/2011 12:00:00AM | 489 ms |
12/21/2011 12:00:00AM | 520 ms |
12/20/2011 12:00:00AM | 502 ms |
12/19/2011 12:00:00AM | 468 ms |
12/18/2011 12:00:00AM | 441 ms |
12/17/2011 12:00:00AM | 505 ms |
12/16/2011 12:00:00AM | 490 ms |
12/15/2011 12:00:00AM | 480 ms |
12/14/2011 12:00:00AM | 508 ms |
12/13/2011 12:00:00AM | 516 ms |
12/12/2011 12:00:00AM | 513 ms |
12/11/2011 12:00:00AM | 479 ms |
12/10/2011 12:00:00AM | 500 ms |
12/09/2011 12:00:00AM | 456 ms |
12/08/2011 12:00:00AM | 451 ms |
12/07/2011 12:00:00AM | 457 ms |
12/06/2011 12:00:00AM | 453 ms |
12/05/2011 12:00:00AM | 444 ms |
12/04/2011 12:00:00AM | 448 ms |
12/03/2011 12:00:00AM | 450 ms |
12/02/2011 12:00:00AM | 531 ms |
12/01/2011 12:00:00AM | 402 ms |
11/30/2011 12:00:00AM | 519 ms |
11/29/2011 12:00:00AM | 544 ms |
11/28/2011 12:00:00AM | 433 ms |
11/27/2011 12:00:00AM | 449 ms |
11/26/2011 12:00:00AM | 415 ms |
11/25/2011 12:00:00AM | 499 ms |
11/24/2011 12:00:00AM | 441 ms |
11/23/2011 12:00:00AM | 544 ms |
11/22/2011 12:00:00AM | 434 ms |
11/21/2011 12:00:00AM | 469 ms |
11/20/2011 12:00:00AM | 452 ms |
11/19/2011 12:00:00AM | 461 ms |
11/18/2011 12:00:00AM | 443 ms |
11/17/2011 12:00:00AM | 453 ms |
11/16/2011 12:00:00AM | 445 ms |
11/15/2011 12:00:00AM | 423 ms |
11/14/2011 12:00:00AM | 447 ms |
11/13/2011 12:00:00AM | 414 ms |
11/12/2011 12:00:00AM | 434 ms |
11/11/2011 12:00:00AM | 447 ms |
11/10/2011 12:00:00AM | 507 ms |
11/09/2011 12:00:00AM | 488 ms |
11/08/2011 12:00:00AM | 577 ms |
11/07/2011 12:00:00AM | 464 ms |
11/06/2011 12:00:00AM | 497 ms |
11/05/2011 12:00:00AM | 480 ms |
11/04/2011 12:00:00AM | 476 ms |
11/03/2011 12:00:00AM | 464 ms |
11/02/2011 12:00:00AM | 544 ms |
11/01/2011 12:00:00AM | 497 ms |
10/31/2011 12:00:00AM | 552 ms |
10/30/2011 12:00:00AM | 486 ms |
10/29/2011 12:00:00AM | 495 ms |
10/28/2011 12:00:00AM | 477 ms |
10/27/2011 12:00:00AM | 483 ms |
10/26/2011 12:00:00AM | 601 ms |
10/25/2011 12:00:00AM | 534 ms |
10/24/2011 12:00:00AM | 529 ms |
10/23/2011 12:00:00AM | 480 ms |
10/22/2011 12:00:00AM | 491 ms |
10/21/2011 12:00:00AM | 463 ms |
10/20/2011 12:00:00AM | 530 ms |
10/19/2011 12:00:00AM | 494 ms |
10/18/2011 12:00:00AM | 484 ms |
10/17/2011 12:00:00AM | 521 ms |
10/16/2011 12:00:00AM | 517 ms |
10/15/2011 12:00:00AM | 515 ms |
10/14/2011 12:00:00AM | 495 ms |
10/13/2011 12:00:00AM | 550 ms |
10/12/2011 12:00:00AM | 518 ms |
-----Original Message-----
From: google-a...@googlegroups.com [mailto:google-a...@googlegroups.com] On Behalf Of Cezary Wagner
Sent: Thursday, January 19, 2012 4:08 PM
To: Google App Engine
Subject: [google-appengine] Re: Why are several production issues related to DeadlineExceededErrors being ignored?
Alexis,
--
| 2012.01.20 | 48 | 10 | 11 | 2.558 | 77.083 % |
| 2012.01.21 | 41 | 1 | 2 | 3.287 | 95.122 % |
If you think it is because you are small scale set an instance to always on,(or 2).
From: google-a...@googlegroups.com [mailto:google-a...@googlegroups.com] On Behalf Of Cezary Wagner
Sent: Saturday, January 21, 2012 11:45 AM
To: google-a...@googlegroups.com

I’m going to stop commenting on this thread.
Your understanding of how the scheduler works is wrong. Which is common, and I can’t blame you for, but your resistance to HR, and to making the scheduler changes is preventing you from resolving your issues.
I still believe you have code issues as well, since the spin up times based on your imports should be nowhere near what you quote.
But everyone of your messages includes “I have a lot of experience with this I can’t be wrong” type language. I can’t help someone who doesn’t want to debug the issue, and only wishes to cite why the issue must be someone else’s fault.
-Brandon
Brandon Wirtz |
| |||
| ||||