I want to test Mongrel to see if solves my
problem before I go messing around with complex unicorn proxy apache
setups etc.
Unless Apache mod_proxy added full request/response buffering, unicorn
and Apache mod_proxy don’t mix. nginx is still the only supported proxy
for unicorn (speaking as the project leader for unicorn).
Alternatively, if you’re already running Mongrel without a proxy in
front, Rainbows! standalone with ThreadSpawn[1] is kinda like Mongrel
except far less portable (and unheard of in production use):
Here’s a sample config file to get you started:
---------------------- rainbows.conf.rb ----------------------
Rainbows! do
use :ThreadSpawn
the Rainbows! default is far lower than Mongrel’s default of 950,
but it’s easier to manage/balance worker processes with Rainbows!
worker_connections 50
Rainbows! limits uploads to 1M by default, change with this
client_max_body_size 666
end
2-4 per CPU is a good number depending on the app/RAM