On Sat, Oct 13, 2012 at 10:43 AM, Sudhir Kumar <[email protected]> wrote:
> Is there a way to setup a global timeout for all views? > > Some of the requests are taking too long. I would like to log those and > send an error response back. If possible, I would NOT like to delegate > timeout to upstream load balancer. What is the best way to achieve this in > Django. > > There is nothing built in to Django for this. You may want to take a look at these external projects: https://bitbucket.org/evzijst/dogslow https://bitbucket.org/evzijst/interruptingcow I heard about them at the talk "Healthy Webapps Through Continuous Introspection" by Erik van Zijst at DjangoCon EU this summer. See: http://lanyrd.com/2012/djangocon-europe/srptg/ for slides/video. I have not had a chance to try these tools out yet myself, but they are on my list for next time I find myself needing to figure out why some views are slow. Karen -- http://tracey.org/kmt/ -- You received this message because you are subscribed to the Google Groups "Django users" 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/django-users?hl=en.

