PDA

View Full Version : SCGI rails and apache


danperrett
October 25th, 2007, 04:44 AM
Hello,
I have a rails project going with SCGI running to speed it up.
This normally works fine and is very quick compared to rails on its own. But there are times when I may be try (during testing) to upload or download very large files and it just stops working dead. Apache seems to times out (after about 5 min), but for some reason the SCGI process never seems to recover, or time out, and it brings down the whole system.
Is there a way of setting a timeout in Zed Shaws SCGI config? so that it just times out that connection instead of bring it all down.

On another point, not far from this one, has anyone set up a cluster of scgi process and integrated them into apache with some sort of load balancing method at all? Any examples?

Cheers.
Dan.