15 Jun

Apache's Load Balancer Manager for Watching Mongrel Cluster

June 15th, 2007 — 4:28 pm Dave

Woof, long title. The post will almost be shorter than that. So one thing I’ve never gotten working in Apache 2.2.x is the load balancer manager. Somewhere I found an article that said you should have it in it’s own separate vhost running on port 8080 or something. Well, not quite. To get Apache’s load balancer manager running and seeing your Mongrel cluster do the following:

  1. Make sure you have mod_status enabled
  2. Make sure you set-up a ProxyPass directive for the URL you want, e.g. /balancer-manager
  3. In the same vhost that has the balanced cluster put the following:
<Location /balancer-manager>
    SetHandler balancer-manager
    Order Deny,Allow
    Deny from all
    Allow from 127.0.0.1
</Location>

You should then be able to see the balance manager from 127.0.0.1/balancer-manager. Hope this helps someone else. I was probably just a little too dense and over thought enabling it in the first place.

More on mod_proxy_balancer.

Add comment

You are adding a new comment