Rails: How can I log all requests which take more than 4s to execute?

Posted by Fedyashev Nikita on Stack Overflow See other posts from Stack Overflow or by Fedyashev Nikita
Published on 2010-06-06T15:50:11Z Indexed on 2010/06/06 16:02 UTC
Read the original article Hit count: 162

I have a web app hosted in a cloud environment which can be expanded to multiple web-nodes to serve higher load.

What I need to do is to catch this situation when we get more and more HTTP requests (assets are stored remotely). How can I do that?

The problem I see from this point of view is that if we have more requests than mongrel cluster can handle then the queue will grow. And in our Rails app we can only count only after mongrel will receive the request from balancer..

Any recommendations?

© Stack Overflow or respective owner

Related posts about ruby-on-rails

Related posts about Performance