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

From: Billie Martin <ex.wife.billie_at_gmail.com>
Date: Mon, 15 Aug 2011 14:33:40 -0500

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

- http://wiki.squid-cache.org/ConfigExamples/Strange/RotatingIPs
- http://dlc.sun.com/osol/docs/content/SQUIDBALANCE/ggyxf.html

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
http://en.wikipedia.org/wiki/Linux-HA), 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
advance.

-------------------------------------------------------
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:33:46 MDT

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