Re: [squid-users] questions/issues with balance_on_multiple_ip

From: Chris Robertson <crobertson@dont-contact.us>
Date: Wed, 07 Nov 2007 11:47:41 -0900

Russell Uman wrote:
>
> i'm using squid as a reverse-proxy/accelerator in front of three apache
> servers.
>
> i'm trying to find a way to bind each visitor to a single apache server.
>
> from the comments in squid.conf, it looks like balance_on_multiple_ip is
> what i want:
>
> # TAG: balance_on_multiple_ip
> # Some load balancing servers based on round robin DNS have been
> # found not to preserve user session state across requests
> # to different IP addresses.
> #
> # By default Squid rotates IP's per request. By disabling
> # this directive only connection failure triggers rotation.
>
> i've disabled balance_on_multiple_ip, but it doesn't seem like squid's
> behavior has changed.

You might want to look into the "sourcehash" argument to the cache_peer
directive. I think the balance_on_multiple_ip would only work for
forward proxies.

>
> am i mistaken about what this feature does?
>
> is there anything else i need to do to get this feature to work?
> (additional iptables conntrack rules or config?)
>
> is there any way i can monitor squid to test how it is dealing with
> sessions?
>
> thank you!
>

Chris
Received on Wed Nov 07 2007 - 13:48:18 MST

This archive was generated by hypermail pre-2.1.9 : Sat Dec 01 2007 - 12:00:02 MST