[Mongrel] balancer://mongrel_cluster

Kris Leech krisleech at interkonect.com
Mon Sep 4 06:14:51 EDT 2006


Jeroen Houben wrote:

>Kris Leech wrote:
>  
>
>>A couple of questions please:
>>
>>What is the benefit of having more than one Mongrel/Rails instance on 
>>the same machine, could one instance not serve as many requests as say 
>>three instances?
>>
>>Is Mongrel Cluster a Apache add-in (like mod_*) or a separately  running 
>>load balancer which runs on a separate port, I could not work it out 
>>from the sample Apache config...
>>
>>|# Redirect all non-static requests to cluster
>>  RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-f
>>  RewriteRule ^/(.*)$ balancer://mongrel_cluster%{REQUEST_URI} [P,QSA,L]
>>
>>How does ||balancer://mongrel_cluster |work?
>>  
>>    
>>
>My understanding is that one mongrel can only handle one request at a 
>time. Therefore 3 mongrel can process 3 request simultaniously.
>  
>
I see, and this is because Mongrel is not threaded, so its kind of like 
replicating threads by using whole instances.

>The balancer is a module for apache >= 2.1
>the balancer itself is not a seperate process, the pack of mongrels of 
>course are seperate processes.
>  
>
Thanks, does it replace mod_proxy_balance?

>HTH,
>
>Jeroen
>
>
>
>_______________________________________________
>Mongrel-users mailing list
>Mongrel-users at rubyforge.org
>http://rubyforge.org/mailman/listinfo/mongrel-users
>
>
>
>  
>




More information about the Mongrel-users mailing list