Re: [google-appengine] Re: Do I have to implement /_ah/warmup

2010-12-07 Thread Will
Jay,

Yeah, I need to import a few packages, so I just wrote an empty handler for
/_ah/warmup so that the import and compiling happen.

Thanks,

Will

On Tue, Dec 7, 2010 at 6:00 AM, Jay Young jaydevfollo...@gmail.com wrote:

 Do you need to import any packages or frameworks in your warm-up load
 them into memory, or will that happen regardless when the instance
 spins up?

 On Dec 6, 1:28 am, Nick Johnson (Google) nick.john...@google.com
 wrote:
  The purpose of warmup requests is to give your app the opportunity to
 load
  all the libraries it needs and do any other initialization work required,
  before it serves user-facing requests. If you have a catchall handler,
 then
  serving a 404 is probably doing that, but having a do-nothing handler is
  probably a better idea, and ensures the request hits the whole app
 pipeline.
 
  -Nick Johnson
 
 
 
 
 
 
 
 
 
  On Sun, Dec 5, 2010 at 5:02 PM, Will vocalster@gmail.com wrote:
   Hmm, thanks.
 
   I can live with the log, as long as doing nothing serves the purpose. I
   prefer less code unless it's absolutely necessary.
 
   Best,
 
   Will
 
   On Sun, Dec 5, 2010 at 10:25 AM, 风笑雪 kea...@gmail.com wrote:
 
   You'd better implement it if you don't want to see it logged as an
   error in your dashboard.
 
   However, the implementation can be empty:
 
   class WarmupHandler(RequestHandler):
  def get(self):
  pass # or log it by: logging.info('Warmup Request')
 
   --
   keakon
 
   --
   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.comgoogle-appengine%2bunsubscr...@googlegroups.comgoogle-appengine%2Bunsubscrib
 e...@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.comgoogle-appengine%2bunsubscr...@googlegroups.comgoogle-appengine%2Bunsubscrib
 e...@googlegroups.com
   .
   For more options, visit this group at
  http://groups.google.com/group/google-appengine?hl=en.
 
  --
  Nick Johnson, Developer Programs Engineer, App Engine
  Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration
 Number:
  368047

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



[google-appengine] Re: Do I have to implement /_ah/warmup

2010-12-06 Thread Jay Young
Do you need to import any packages or frameworks in your warm-up load
them into memory, or will that happen regardless when the instance
spins up?

On Dec 6, 1:28 am, Nick Johnson (Google) nick.john...@google.com
wrote:
 The purpose of warmup requests is to give your app the opportunity to load
 all the libraries it needs and do any other initialization work required,
 before it serves user-facing requests. If you have a catchall handler, then
 serving a 404 is probably doing that, but having a do-nothing handler is
 probably a better idea, and ensures the request hits the whole app pipeline.

 -Nick Johnson









 On Sun, Dec 5, 2010 at 5:02 PM, Will vocalster@gmail.com wrote:
  Hmm, thanks.

  I can live with the log, as long as doing nothing serves the purpose. I
  prefer less code unless it's absolutely necessary.

  Best,

  Will

  On Sun, Dec 5, 2010 at 10:25 AM, 风笑雪 kea...@gmail.com wrote:

  You'd better implement it if you don't want to see it logged as an
  error in your dashboard.

  However, the implementation can be empty:

  class WarmupHandler(RequestHandler):
         def get(self):
                 pass # or log it by: logging.info('Warmup Request')

  --
  keakon

  --
  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.comgoogle-appengine%2Bunsubscrib
   e...@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.comgoogle-appengine%2Bunsubscrib 
  e...@googlegroups.com
  .
  For more options, visit this group at
 http://groups.google.com/group/google-appengine?hl=en.

 --
 Nick Johnson, Developer Programs Engineer, App Engine
 Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration Number:
 368047

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



[google-appengine] Re: Do I have to implement /_ah/warmup

2010-12-05 Thread Jason Collins
In Python, they are disabled by default (http://code.google.com/
appengine/docs/python/config/appconfig.html#Inbound_Services), so if
you're seeing them, and your app.yaml is not configured for warmup,
it's likely a bug.

In Java, they're on by default (http://code.google.com/appengine/docs/
java/config/appconfig.html#Warming_Requests), so if you want to
disable them,  you can specify in your web.xml:

  warming-requests-enabledfalse/warming-requests-enabled

There looks to be a documentation error if your use app.yaml to
configure your Java application:

http://code.google.com/appengine/docs/java/config/appconfig.html#Warming_Requests
says Warming requests are also enabled by default if you configured
your Java application with app.yaml.
http://code.google.com/appengine/docs/java/configyaml/appconfig_yaml.html#Warming_Requests
says In Java applications configured with app.yaml, warming requests
are disabled by default.

I'm not sure which one is true.

j

On Dec 5, 12:02 am, Will vocalster@gmail.com wrote:
 Hmm, thanks.

 I can live with the log, as long as doing nothing serves the purpose. I
 prefer less code unless it's absolutely necessary.

 Best,

 Will



 On Sun, Dec 5, 2010 at 10:25 AM, 风笑雪 kea...@gmail.com wrote:
  You'd better implement it if you don't want to see it logged as an
  error in your dashboard.

  However, the implementation can be empty:

  class WarmupHandler(RequestHandler):
         def get(self):
                 pass # or log it by: logging.info('Warmup Request')

  --
  keakon

  --
  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.comgoogle-appengine%2Bunsubscrib 
  e...@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.



[google-appengine] Re: Do I have to implement /_ah/warmup

2010-12-05 Thread Tomas Alaeus
Worth noting is that the documentation is wrong. The XML-tag to use to
disable warmup requests in Java is warmup-requests-enabled and _not_
warming-requests-enabled.

Maybe you can fix it Nick? :)

On 6 Dec, 07:28, Nick Johnson (Google) nick.john...@google.com
wrote:
 The purpose of warmup requests is to give your app the opportunity to load
 all the libraries it needs and do any other initialization work required,
 before it serves user-facing requests. If you have a catchall handler, then
 serving a 404 is probably doing that, but having a do-nothing handler is
 probably a better idea, and ensures the request hits the whole app pipeline.

 -Nick Johnson





 On Sun, Dec 5, 2010 at 5:02 PM, Will vocalster@gmail.com wrote:
  Hmm, thanks.

  I can live with the log, as long as doing nothing serves the purpose. I
  prefer less code unless it's absolutely necessary.

  Best,

  Will

  On Sun, Dec 5, 2010 at 10:25 AM, 风笑雪 kea...@gmail.com wrote:

  You'd better implement it if you don't want to see it logged as an
  error in your dashboard.

  However, the implementation can be empty:

  class WarmupHandler(RequestHandler):
         def get(self):
                 pass # or log it by: logging.info('Warmup Request')

  --
  keakon

  --
  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.comgoogle-appengine%2bunsubscrib...@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.comgoogle-appengine%2bunsubscrib...@googlegroups.com
  .
  For more options, visit this group at
 http://groups.google.com/group/google-appengine?hl=en.

 --
 Nick Johnson, Developer Programs Engineer, App Engine
 Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration Number:
 368047

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