RE: [squid-users] Can Squid Load Balancing be Dynamic/Conditional against SNMP Monitoring?

From: Baird, Josh <>
Date: Mon, 15 Aug 2011 14:46:01 -0500

I would take a look at LVS or HAProxy.


-----Original Message-----
From: Billie Martin []
Sent: Monday, August 15, 2011 3:34 PM
Subject: [squid-users] Can Squid Load Balancing be Dynamic/Conditional against SNMP Monitoring?

I understand how Squid can be configured as a Load Balancer rotating
round-robin among a set of web servers IP addresses:


The problem is that if one of those web servers is down (either
administratively or unplanned), Squid will continue to send traffic to
it, right?  If SNMP is enabled on Squid (see below), can Squid monitor
the web servers over SNMP and dynamically allocate traffic based on
whether the servers are up or not?  If this is possible, how might it
be configured, and where might it be documented?
Is there a better way to do this?  Would it be better to manage the
dynamic process with Heartbeat and Linux HA (with, even if there was only a
single Squid server and not a cluster?

I would greatly appreciate ANY discussion on this.  Advantages,
disadvantages, configurations, alternatives, etc.  Many thanks in

To use SNMP with squid, it must be enabled with the configure script,
and rebuilt. To enable SNMP in squid go to squid src directory and
follow the steps given below :
./configure --enable-snmp [ ... other configure options ]
make all
make install
And edit following tags in squid.conf file :
acl aclname snmp_community public
snmp_access aclname
Once you configure squid and SNMP server, Start SNMP and squid.
Received on Mon Aug 15 2011 - 19:46:09 MDT

This archive was generated by hypermail 2.2.0 : Tue Aug 16 2011 - 12:00:02 MDT