set passenger RailsMaxPoolSize / PassengerMaxPoolSize to actually work + how many instances of passenger to have for rails
Passenger seems to ignore trying to set PassengerMaxPoolSize in vhosts.
To set the maximum number of instances for passenger for Rails, set it in a file called passenger.conf and then do this:
1 |
Include passenger.conf |
in apache2.conf (in /etc/apache2 for Ubuntu folks).
Here’s roughly what my passenger.conf looks like:
1 2 3 4 5 |
PassengerRoot /opt/#{passenger}
PassengerRuby /opt/#{ruby enterprise}
PassengerMaxPoolSize #{some number}
PassengerUseGlobalQueue on
|
As the post I link to above notes, you can check on your passenger status at: /tmp/passenger_status.*
How many instances?
Some people seem to think it’s a good idea to basically just max out your servers with instances. This is a bad idea, I’ve found. After a few hiccups, I’ve found that it’s best to leave about 100-200mb of memory lying around unused, in case the machine wants to do something, or in case you want to startup a console without frying the server.
September 03, 2009
