Moving from mod_proxy_balancer to HAProxy; any guidance?


#1

Hi all.

Just decided to move from mod_proxy_balancer to HAProxy for its improved
load balancing to mongrels.

Anyway, have you done the same? If so, can you provide any guidance for
making this change? I haven’t been able to find any guides for doing
so, and would love any insight you can provide.

Many thanks,
Chris


#2

Hi Chris,

if you’re looking to load balance multiple mongrels on a single
machine I’d go with Passenger (http://www.modrails.com/) directly
under apache… not only it will mange the multiple instances of
mongrel (start and stop them when needed) but it also serves the
static files directly through apache.


#3

Jean-Marc (M2i3.com) wrote:

Hi Chris,

if you’re looking to load balance multiple mongrels on a single
machine I’d go with Passenger (http://www.modrails.com/) directly
under apache… not only it will mange the multiple instances of
mongrel (start and stop them when needed) but it also serves the
static files directly through apache.

I will look into that possibility. Regardless, I appreciate your reply.

-Chris


#4

Jean-Marc (M2i3.com) wrote:

Hi Chris,

if you’re looking to load balance multiple mongrels on a single
machine I’d go with Passenger (http://www.modrails.com/) directly
under apache… not only it will mange the multiple instances of
mongrel (start and stop them when needed) but it also serves the
static files directly through apache.

Um, unless a big rock fell on my head and I’ve been unconscious for a
while, you don’t use Mongrels with Passenger. That’s the point of
Passenger: to remove the need of proxying. Passenger is to Rails as
mod_php is to PHP.

Peace.


#5

Philippe,

You are right, you don’t mongrel with passenger; no rock fell on your
head.

I was merely pointing out a solution that provides the functionality
Chris is looking for without adding more complexity to his setup.
That based on my own experience where instead of trying to load
balance the mongrels I simply eliminated them using Passenger.

regards,

Jean-Marc
http://m2i3.com/blog/jean-marc


#6

This is correct. With mod_passenger you don’t need Mongrel, Thin ou
Webrick.
You connect your Apache directly to Rails.

Watch out because the last time I check this work only on a Linux
server. But why would you use Windows anyway for serving Web pages.

Hugues

On Oct 21, 3:11 pm, Phillip K. removed_email_address@domain.invalid