I am developping a Ruby on Rails website with a heavy calculation
component at the backend. The calculation module can take up to 30sec
to produce a result and therefore the queries can be extremely slow to
I now want to deploy my website and I am having a hard time finding a
good setup for it. I've tried the following two options and I'll
explain the problems I've had using them. I'm looking for suggestions
for either solving these problems or for a deployement environment
that would suit my needs.
Setup 1. Apache2
Problem: It seems that all the StdOut and StdErr are directly send to
apache, causing it to produce erroneous requests. Also all my logs are
therefore empty and it is not that great to find out about the general
status of the application or the errors that occur.
Setup 2: Apache2 + Mongrel cluster
Problem: Mongrel is not multithreaded and as I've stated earlier my
requests can take up to 30sec. So if I want to guarantee a fast
service for my users I'd need a ridiculous number of mongrels running.
I'll be glad to give more precisions if needed and would appreciate
any suggestions or advice!