On 22 March 2013 10:01, GAEfan <[email protected]> wrote: > Hi Brian: > > Is "/_ah/warmup" supposed to map to any particular response? Right now, > there is no mapping for that url, and it gives a 301 to my default view. >
No, the mapping is up to you. Have you read: https://developers.google.com/appengine/docs/python/config/appconfig#Warmup_Requests > > I undertand the benefits of having the devserver match production, to test > the actual performance (and thank you for that!). I am just not used to > seeing the 301's in my logs. Should I map "/_ah/warmup" to a simple http > response? Wouldn't that keep the instance warm without sending a request > to an irrelevant view? > The idea is that your "/_ah/warmup" handler should load whatever state you need to make subsequent requests faster. That might mean doing imports, loading template files, fetching configuration settings out of datastore or files, etc. If your warmup handler doesn't load any interesting state then there is no reason to opt into warmup requests. I am just seeing my development logs polluted with extra messages spawned > by a view that I did not request. I can learn to live with it. > You might want to change your app because you could have the same issue when you deploy. Thanks. BTW, will you be bringing more chocolate bars to I/O? > Sorry, some things are classified ;-) Cheers, Brian > -- > You received this message because you are subscribed to the Google Groups > "Google App Engine" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/google-appengine?hl=en. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/google-appengine?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
