Hi Bart

When you have successful startup what sort of average startup time are
you seeing.  (I would accumulate a fair number of stats on this
so you can see what a successful varience is.)  My startup time for (a
non django) but large stack is typically under 6 secs on a good day
8-12 secs when things are a bit slow and DEE when it's bad ;-)  In the
last few days I am seeing a DEE about 5 times a day on a startup
from a very quiet site (its a actually a test site so no one is using
it).

I would also have a closer look and see if a request just after a DEE
is also failing but with shorter time.  Big frameworks can have
problems
if they don't start up cleanly.

Ultimately appengine will fail at some point (and come back). Like the
datastore - you will get a timeout at some point, memcache - stuff
will be
purged)  it means you do have to code for or allow for the fact that
things may go wrong for a period.  Hopefully not often.  The big
upside though
is if you take into account these sorts of things your app will be
more robust. It still beats managing hardware ;-)

Profiling your startup will also help you shrink startup time.  Maybe
there are things you can defer till you need them.  This won't help
if google is having a really bad day. But it will overall improve your
responsiveness when you do have to start new instances.

Rgds

Tim

On Oct 30, 7:50 am, Bart Thate <[email protected]> wrote:
> On Sat, Oct 30, 2010 at 1:35 AM, Tim Hoffman <[email protected]> wrote:
> > Hi
>
> Hi Tim,
>
> you are right looking at the logs is the first thing i should do ..
>
>    1. 10-29 04:36PM 12.953
>
>    botbase - on demand reloading of commonplugs.forward
>
>    2. D10-29 04:36PM 12.953
>
>    plugins - trying commonplugs.forward
>
>    3. E10-29 04:36PM 50.560
>
>    <class 'google.appengine.runtime.DeadlineExceededError'>:
>    Traceback (most recent call last):
>
> Its all deadline errors, notice the time difference between the last debug
> line and the exception .. 38 seconds ??
>
> I dont use django but my own framework is getting huge and loading that
> might be a problem. Real problem is though that i cant know for sure whether
> its my code at fault or its appengine that has troubles. Its getting hard to
> develop on a unstable platform ;[
>
> I suggest you do some serious logging in your app so you can see where
>
>
>
>
>
>
>
> > the time is taken up.  If its during initial imports
> > then you may be in a pocket of poor performing appengine
> > infrastructure at the moment.  (A few people seem to be having
> > onoing problems since the 27th)  In addition  it will give you a
> > better insight into how you app is behaving during startup.
>
> > It's also possible that you got a DeadLineExceeded during startup that
> > has left you with a broken instance (this can happen if you using
> > things
> > like django).
>
> > Have a look at the system log and see if all the 500's are due to
> > DeadLineExceeded or just the first one followed by
> > ImportError's or even AttributeError  in seemingly odd places.
>
> its all DeadLineExceeded errors.
>
> > Mind you all of this only applies if your using python.  (I have no
> > idea haw the java platforms behave)
>
> I'm on python. If you're curious about the code its 
> onhttp://jsonbot.googlecode.com
>
> > Rgds
>
> > Tim
>
> Thanks for the help Tim !
>
> Bart
>
>
>
>
>
>
>
>
>
> > On Oct 30, 7:28 am, Bart Thate <[email protected]> wrote:
> > > So i was programming the whole day and night to give my website a new
> > look,
> > > finally got something working and tweeted the website url -
> >http://jsonbot.appspot.com. I was so amazed the bot loaded that fast i
> > > though man i must be king of optimisation, seeing my website work as it
> > > should (latency ~ 150msec).
>
> > > But then after a few visitors, it just went dead throwing 500's all the
> > > time.
>
> > > *Instances*QPSLatencyMemory0.01732648.0 ms8.2 MBytes0.01732951.0 ms8.0
> > > MBytes0.01732914.0 ms7.9 MBytes0.01733.0 ms10.3 MBytes
>
> > > ENOCLUE whats going on here, but it sure is disappointing. Seems to me
> > that
> > > coldstart is a problem on GAE right now and scaling doesnt work at all
> > cause
> > > that always needs to cold boot new instances up to be able to scale ?
>
> > > Error: Server ErrorThe server encountered an error and could not complete
> > > your request.
>
> > > If the problem persists, please
> > > report<http://code.google.com/appengine/community.html> your
> > > problem and mention this error message and the query that caused it.
> > > I hope google can give also us "freerunners" a decent level of service so
> > > that we can grow as well.
> > > The app is still stuck, i wont upload a new one till you have been able
> > to
> > > take a look at it.
>
> > > appid: jsonbot
>
> > > Regards,
>
> > > Bart
>
> > > --
> > > @jsonbot Heerhugowaard, Netherlands
> > > programming schizofrenic -http://jsonbot.appspot.com
>
> > --
> > 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]<google-appengine%2Bunsubscrib 
> > [email protected]>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-appengine?hl=en.
>
> --
> @jsonbot Heerhugowaard, Netherlands
> programming schizofrenic -http://jsonbot.appspot.com

-- 
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.

Reply via email to