Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Significant performance degredation over the last week
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  9 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Blake  
View profile  
 More options Nov 1, 5:48 pm
From: Blake <blake.commag...@gmail.com>
Date: Sun, 1 Nov 2009 14:48:36 -0800 (PST)
Local: Sun, Nov 1 2009 5:48 pm
Subject: Significant performance degredation over the last week
Hi -

I have a relatively simple app and I've noticed significant
performance degredation over the last week. Even on extremely simple
pages like the "about" page which has the following code:

class About(webapp.RequestHandler):

    def get(self):

        template_values = {}
        path = os.path.join(os.path.dirname(__file__), '../views/
about.html')
        self.response.out.write(template.render(path,
template_values))

Yesterday, requests to this page were taking anywhere from 10-15
seconds to display from the time appengine first recorded the request
arrival - just to verify I adding some logging and it was almost the
entire time  of the request before flow control was in my class.
Naturally once my code was executing it finished very quickly as all
it does is render a static html file. Some requests finished almost
instantaneously, but consistently I ran into the enormous delay. This
pattern leads me to believe that I'm being affected by the "cold
start" phenomenon but I would expect that as I continued to hit
refresh to generate logging data that all subsequent loads would be
fast, but many were not. Any insights?

-Blake


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Brandon Thomson  
View profile  
 More options Nov 2, 3:17 pm
From: Brandon Thomson <gra...@gmail.com>
Date: Mon, 2 Nov 2009 12:17:27 -0800 (PST)
Local: Mon, Nov 2 2009 3:17 pm
Subject: Re: Significant performance degredation over the last week
For a simple webapp app, even cold start should be not more than
50-100ms extra. One thing you might be affected by is slow import bug;
you may want to add more logging statements to see if that is the
cause. Either way try to bring it to the attention of googlers so they
can look into it as there is probably nothing you can do.

On Nov 1, 5:48 pm, Blake <blake.commag...@gmail.com> wrote:


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jason C  
View profile  
 More options Nov 2, 4:32 pm
From: Jason C <jason.a.coll...@gmail.com>
Date: Mon, 2 Nov 2009 13:32:14 -0800 (PST)
Local: Mon, Nov 2 2009 4:32 pm
Subject: Re: Significant performance degredation over the last week
We have a webapp application that occasionally gets
DeadlineExceededErrors on cold start (i.e., >30s!). This is a regular
occurrence on our Django-based apps.

Happens at the usual times: say, 6-9a PST.

j

On Nov 2, 2:17 pm, Brandon Thomson <gra...@gmail.com> wrote:


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
William Montgomery  
View profile  
 More options Nov 2, 4:53 pm
From: William Montgomery <w.k.r.montgom...@googlemail.com>
Date: Mon, 2 Nov 2009 21:53:17 +0000
Local: Mon, Nov 2 2009 4:53 pm
Subject: Re: [google-appengine] Re: Significant performance degredation over the last week

Also for a static page such as about, does it not make sense to cache the
rendered template in Memcache, to save the processing?

Will.

2009/11/2 Jason C <jason.a.coll...@gmail.com>


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Tim Hoffman  
View profile  
 More options Nov 3, 6:18 am
From: Tim Hoffman <zutes...@gmail.com>
Date: Tue, 3 Nov 2009 03:18:30 -0800 (PST)
Local: Tues, Nov 3 2009 6:18 am
Subject: Re: Significant performance degredation over the last week

> Also for a static page such as about, does it not make sense to cache the
> rendered template in Memcache, to save the processing?

It does

However you are not guarunteed to find anything in the cache, and I
think its indicative of a capacity problem in the early morning US
time
that startup times that normally are around 3-4 sec, blow out to 30
sec are occuring very frequently.

So the best example of this problem is one that doesn't load a big
stack and still blows out instance startup time, as per the OP's post.

Rgds

T

On Nov 3, 5:53 am, William Montgomery


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Brandon Thomson  
View profile  
 More options Nov 3, 9:40 am
From: Brandon Thomson <gra...@gmail.com>
Date: Tue, 3 Nov 2009 06:40:19 -0800 (PST)
Local: Tues, Nov 3 2009 9:40 am
Subject: Re: Significant performance degredation over the last week
Yes, we are now seeing the occasional deadline exceeded in the AM US
time for a small-stack app as well.

On Nov 3, 6:18 am, Tim Hoffman <zutes...@gmail.com> wrote:


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Blake  
View profile  
 More options Nov 3, 12:55 pm
From: Blake <blake.commag...@gmail.com>
Date: Tue, 3 Nov 2009 09:55:43 -0800 (PST)
Local: Tues, Nov 3 2009 12:55 pm
Subject: Re: Significant performance degredation over the last week
Brandon -

That's an excellent suggestion.
It presently isn't happening (no code change on my part, so it may be
that google fixed the prob), but if it ever does occur, I should be
able to determine whether it is an import prob.
Thanks again!

-Blake

On Nov 2, 12:17 pm, Brandon Thomson <gra...@gmail.com> wrote:


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Blake  
View profile  
 More options Nov 3, 1:02 pm
From: Blake <blake.commag...@gmail.com>
Date: Tue, 3 Nov 2009 10:02:52 -0800 (PST)
Local: Tues, Nov 3 2009 1:02 pm
Subject: Re: Significant performance degredation over the last week
Actually, read my post again - the vast majority of the time to
process the request occurred prior to entering the code for the About
class. Using memcache to save me a few milliseconds on rendering such
a tiny page is not a priority when it's 10-15 seconds before memcache
can even do a lookup.

-Blake

On Nov 2, 1:53 pm, William Montgomery


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Tim Hoffman  
View profile  
 More options Nov 3, 6:09 pm
From: Tim Hoffman <zutes...@gmail.com>
Date: Tue, 3 Nov 2009 15:09:45 -0800 (PST)
Local: Tues, Nov 3 2009 6:09 pm
Subject: Re: Significant performance degredation over the last week
HI Blake

The strategy I have taken (and this works most of the time)
is in my main I import almost nothing except the bare minimum of app
engine apis

import logging
logging.getLogger().setLevel(logging.DEBUG)
import os, sys
from google.appengine.ext.webapp import Request,RequestHandler,
Response
from google.appengine.api import users
from google.appengine.api import memcache
from google.appengine.runtime import DeadlineExceededError

from google.appengine.ext.webapp.util import run_wsgi_app

Thats it,

Then in main I try and serve the page from memcache for anon users,
if the page isn't present I then start my imports for the full
application stack.

I have found that if the page in question is in memcahce I never get
the DeadLineExceededError, when they are occuring.
and I know they are occuring, If  a logged user at tries at the same
time (they never get a cached page ) I am getting
DeadLineExceededErrors.

This behaviour is very consistent when we get hit with a long period
of slow instance spin ups which result in deadlines exceeded.

I am not using Django or webapp but my typical cold start time is
around 4sec. So I am experiencing a bit of grief too.
But almost never for a cached page.  (Except when the system gets so
bad that even static handlers fail with DeadLineExceeded)

I am not sure how applicable this approach is for other app stacks.

Rgds

T

On Nov 4, 2:02 am, Blake <blake.commag...@gmail.com> wrote:


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google