Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does/can Passenger use clusters like Mongrel?

I'm just curious if Passenger does or can utilize clusters like Mongrel can. If so, how can I specifically run Passenger with clusters? I'm using nginx. And if not, how does it outperform Mongrel so well?

like image 995
ground5hark Avatar asked Apr 09 '26 15:04

ground5hark


1 Answers

Mongrel Cluster just runs a specified number of Mongrel processes and assigns incoming HTTP requests to them using Apache's mod_proxy_balancer module which acts as a reverse proxy and performs load balancing.

Passenger spawns worker (Ruby) processes to handle HTTP requests using one of three different and configurable strategies. When Passenger's smart spawning method is used it is able to cache the Ruby on Rails framework code, which significantly decreases spawn time. Passenger is also able to re-use the already loaded Ruby interpreter, rather than loading a new one for each process.

like image 161
John Topley Avatar answered Apr 11 '26 05:04

John Topley



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!