When my application is loaded into a server the performance is
excellent. Loading a webpage into the browser then only takes a
fraction of a second, even with the use of Django templates and calls
to the datastore. I only use the memcache for one Ajax call that is
made frequently, and that has improved that call a lot. Using the
memcache to replace calls to Django could probably improve the
performance a bit in my case, but I doubt that it would have any
significant impact on the cold start time.

Here is a blog post with a solution using static files:

http://blog.vikispot.com/2010/02/dynamic-homepage-with-static-html-and.html

Using entirely static html files could perhaps work. But the
generation of dynamic content would still take a long time in a cold
start. Anyway, I think the cold start time for GAE should be improved
rather than having thousands of developers having to come up with
messy workarounds.

On Feb 21, 4:15 am, Eli Jones <eli.jo...@gmail.com> wrote:
> Hmm.. only way to ever be sure is to test. I don't use Django so I am
> completely useless for suggestions.
>
> It seems that 500 ms or less should be your expected cold start time for
> python.
>
> If you are experiencing cold starts higher than that, then something in your
> code could be taking up that time.. so there might be ways to improve the
> cold start time.
>
> On Sat, Feb 20, 2010 at 9:54 PM, Anders <i...@blabline.com> wrote:
> > I doubt that replacing calls to Django with calls to memcache would
> > improve the cold start time significantly, although I could be wrong.
> > What I guess happens in a cold start is that the application code has
> > to be loaded through the network into a server and then instantiated
> > before serving a webpage. Using the memcache would then not improve
> > the initial loading of applications. Only if Django is taking a long
> > time to load during a cold start would the use of memcache make much
> > difference.
>
> > On Feb 21, 3:37 am, Eli Jones <eli.jo...@gmail.com> wrote:
> > > I have a testapp set up that I use to see if any goofy ideas I come up
> > with
> > > have any merit.
>
> > > So you could try to create a simplified version of your page that used
> > the
> > > same imports and django templates as the live one.  Then create two
> > > different test pages.. one where you experiment with caching different
> > > things.. and then try to compare the cold start times.
>
> > > On Sat, Feb 20, 2010 at 9:32 PM, Anders <i...@blabline.com> wrote:
> > > > Strange, I don't see the preview release notice on
> > > > appengine.google.com any longer. So I assumed that GAE was no longer
> > > > in preview release version. And on the SDK download page it now says:
> > > > "Please note: The App Engine SDK is under active development, please
> > > > keep this in mind as you explore its capabilities."
>
> > > > I guess I could cache the html generated by Django, at least for the
> > > > index page, if that library is more heavy to load than the Memcache
> > > > API. I don't know exactly how Python works, but shouldn't it be
> > > > possible for GAE to always have the standard frameworks always loaded
> > > > into memory for all applications to share?
>
> > > > On Feb 21, 3:17 am, Eli Jones <eli.jo...@gmail.com> wrote:
> > > > > First, when I log into appengine.google.com, it still says "this is
> > a
> > > > > preview release" with the "preview release" part being in bright red
> > > > > letters... so.. take that to mean what you want.
>
> > > > > Second, you haven't mentioned what exactly the code for your index
> > page
> > > > > does? What is it loading?  How much caching are you doing?
>
> > > > > Caching isn't just for entities from the datastore.. you can and
> > should
> > > > also
> > > > > cache html or page templates or whatever else you can..  Also, you
> > > > shouldn't
> > > > > dump a bunch of imports at the top of your code.. only import
> > specific
> > > > > modules as needed within the code.
>
> > > > > Though, it's hard to make suggestions without knowing exactly how
> > your
> > > > code
> > > > > works. (You may be doing all of the above things.. or feel like you
> > are
> > > > > doing them.)
>
> > > > > A lot of the annoying restrictions that people complain about, to me,
> > are
> > > > > inherent limitations to having a highly scalable infrastructure.. the
> > > > > restrictions are there to force you to learn to code (from the
> > beginning)
> > > > > for the App Engine environment.
>
> > > > > Granted, your issue may just be with intermittent but slow cold start
> > > > > times.. is the cold start reasonable in general for you..
> > > > > but occasionally hits that frustrating point? (Again, hard to know
> > > > anything
> > > > > without knowing how your code is structured.)
>
> > > > > On Sat, Feb 20, 2010 at 8:59 PM, Anders <i...@blabline.com> wrote:
> > > > > > I'm using Python. And only Python's standard library that's in GAE.
> > My
> > > > > > guess is that the cold start problem is similar in the Java
> > version.
>
> > > > > > The cold start time has improved but now and then loading the index
> > > > > > page takes frustratingly long time. That's poor quality for both
> > end
> > > > > > users and developers.
>
> > > > > > On Feb 20, 7:21 pm, Brandon Thomson <gra...@gmail.com> wrote:
> > > > > > > Are you using python or java? what is your framework?
>
> > > > > > > On Feb 20, 1:26 am, Anders <i...@blabline.com> wrote:
>
> > > > > > > > This has been discussed before but the problem still remains.
> > It
> > > > seems
> > > > > > > > that GAE is no longer in a preview release version (as far as I
> > can
> > > > > > > > see). Having a cold start initiation time of 10 seconds is a
> > major
> > > > > > > > bottleneck.
>
> > > > > > > > Imagine if it took 10 seconds to load for example the Google
> > Search
> > > > > > > > index page in your browser. It doesn't sound like a very long
> > time,
> > > > > > > > but today that kind of load time for an index page is very poor
> > > > > > > > performance.
>
> > > > > > > > I understand that GAE cannot at the moment hold all
> > applications
> > > > hot/
> > > > > > > > warm, because that would require a lot more resources I assume.
> > But
> > > > I
> > > > > > > > think the cold start time needs to be brought down to a maximum
> > of
> > > > > > > > around 2 seconds.
>
> > > > > > > > It actually doesn't matter in many cases if an application is
> > used
> > > > by
> > > > > > > > millions of users every day or only seldom by a few people. The
> > > > load
> > > > > > > > time for webpages is usually extremely important regardless the
> > > > amount
> > > > > > > > of traffic to a website. Each user's experience counts.
>
> > > > > > --
> > > > > > You received this message because you are subscribed to the Google
> > > > Groups
> > > > > > "Google App Engine" group.
> > > > > > To post to this group, send email to
> > google-appengine@googlegroups.com
> > > > .
> > > > > > To unsubscribe from this group, send email to
> > > > > > google-appengine+unsubscr...@googlegroups.com<google-appengine%2bunsubscr...@googlegroups.com>
> > <google-appengine%2bunsubscr...@googlegroups.com<google-appengine%252bunsubscr...@googlegroups.com>
>
> > > > <google-appengine%2bunsubscr...@googlegroups.com<google-appengine%252bunsubscr...@googlegroups.com>
> > <google-appengine%252bunsubscr...@googlegroups.com<google-appengine%25252bunsubscr...@googlegroups.com>
>
> > > > > > .
> > > > > > For more options, visit this group at
> > > > > >http://groups.google.com/group/google-appengine?hl=en.
>
> > > > --
> > > > You received this message because you are subscribed to the Google
> > Groups
> > > > "Google App Engine" group.
> > > > To post to this group, send email to google-appengine@googlegroups.com
> > .
> > > > To unsubscribe from this group, send email to
> > > > google-appengine+unsubscr...@googlegroups.com<google-appengine%2bunsubscr...@googlegroups.com>
> > <google-appengine%2bunsubscr...@googlegroups.com<google-appengine%252bunsubscr...@googlegroups.com>
>
> > > > .
> > > > For more options, visit this group at
> > > >http://groups.google.com/group/google-appengine?hl=en.
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Google App Engine" group.
> > To post to this group, send email to google-appeng...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-appengine+unsubscr...@googlegroups.com<google-appengine%2bunsubscr...@googlegroups.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-appengine?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.

Reply via email to