I think I just edited the main function in appstats/ui.py. I can not recall how the original looked, but mine is now:
def main(): """Main program. Auth check, then create and run the WSGIApplication.""" if not os.getenv('SERVER_SOFTWARE', '').startswith('Dev'): if users.get_current_user() is None: print 'Status: 403' print print 'Forbidden' return app = webapp.WSGIApplication(URLMAP, debug=DEBUG) util.run_bare_wsgi_app(app) I wanted to require login, but not admin to view the stats. Robert On Wed, Jan 20, 2010 at 10:46 AM, Nickolas Daskalou <n...@daskalou.com> wrote: > Technical. I tried editing the appstats code to turn off this admin user > requirement, but I kept getting a 500 error. > > > 2010/1/21 mani doraisamy <mdorais...@orangescape.com> >> >> Is that a technical question or process question? >> >> On Jan 20, 4:35 pm, Nickolas Daskalou <n...@daskalou.com> wrote: >> > Hi mani, >> > >> > I have a question. How did you get appstats to not require an admin >> > login in >> > production? >> > >> > Nick >> > >> > 2010/1/20 mani doraisamy <mdorais...@orangescape.com> >> > >> > >> > >> > > Same request, but another query has degraded from 45ms to 846ms: >> > >http://247-test.appspot.com/stats/details?time=1263968821144 >> > >http://247-test.appspot.com/stats/details?time=1263908256446 >> > >> > > thanks, >> > > mani >> > >> > > On Jan 20, 4:00 pm, mani doraisamy <mdorais...@orangescape.com> wrote: >> > > > Sorry. I got the degradation wrong. Datastore degrades from 40ms to >> > > > 1283ms. >> > >> > > > thanks, >> > > > mani >> > >> > > > On Jan 20, 3:48 pm, mani doraisamy <mdorais...@orangescape.com> >> > > > wrote: >> > >> > > > > Here are the stats for the same request at 05:37 Vs 10:49 on >> > > > > 2010-01-19: >> > >> > > >http://247-test.appspot.com/stats/details?time=1263908256446http://24... >> > >> > > > > It just returns 2 entities. But the datastore query degrades from >> > > > > 256ms to 1760ms (6.8x degradation). Memcache also seems to >> > > > > degrade, >> > > > > but not as much as datastore. Any suggestions? >> > >> > > > > thanks, >> > > > > mani >> > >> > > > > On Jan 19, 4:18 pm, mani doraisamy <mdorais...@orangescape.com> >> > > > > wrote: >> > >> > > > > > Thanks for the link, Danny. This is the best profiling tool i >> > > > > > have >> > > > > > used. Well done, Guido! >> > >> > > > > > Will get back with the performance data for off-peak Vs peak >> > > > > > hours. >> > >> > > > > > thanks, >> > > > > > mani >> > >> > > > > > On Jan 17, 9:37 pm, Danny Tuppeny <da...@tuppeny.com> wrote: >> > >> > > > > > > Have you identified what part of your page is taking >> > > > > > > additional >> > > time? >> > >> > > > > > > Guido van Rossum wrote a library called Appstats to help >> > > > > > > profile >> > > time >> > > > > > > spent on API calls. I'd recommend setting it up (it works in >> > > > > > > production) to see if you can identify where this time is >> > > > > > > being >> > > spent. >> > >> > > > > > > I wrote a short article about Appstats on my blog with some >> > > > > > > screenshots showing the sort of data you can get out of it: >> > >> > >> > > >http://blog.dantup.com/2010/01/profiling-google-app-engine-with-appstats >> > >> > > > > > > Hope this helps. >> > >> > > > > > > Danny >> > >> > > > > > > On Jan 16, 8:24 pm, mani doraisamy >> > > > > > > <mdorais...@orangescape.com> >> > > wrote: >> > >> > > > > > > > Recently, we have been running into frequent performance >> > > problems, >> > > > > > > > especially between 7-10pm IST. Requests that used to take >> > > > > > > > 600ms >> > > are >> > > > > > > > taking almost 4 secs. >> > >> > > > > > > > - Has anyone faced similar problems recently? >> > > > > > > > - What is the limit for memcache per account? How do we find >> > > > > > > > the >> > > cache >> > > > > > > > expiry pattern? (actual expiry Vs specified expiry) >> > >> > > > > > > > thanks, >> > > > > > > > mani >> > >> > > -- >> > > 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%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. >> >> >> > > -- > 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. >
-- 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.