Set reasonable request timeout for Rails application
When something wrongs happen in Rails and a request takes excessive amount of time, there is no timeout in Passenger (only Enterprise supports it). Therefore Foreman misbehaves, one process is blocked and in the worst case it eats all memory rendering the instance to be unusable until OOM kills this process.
This is a proposal to use some tool to timeout requests after reasonable time of 5 minutes. One of the tools we could use is little gem https://github.com/heroku/rack-timeout that does the job and works well with Passenger.