Moving from mod_proxy_balancer to HAProxy; any guidance?

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

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.

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.

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