Re: [squid-users] Preferred origin server in redundant system, accelerator mode

From: Amos Jeffries <squid3_at_treenet.co.nz>
Date: Fri, 07 Jan 2011 17:53:09 +1300

On 06/01/11 14:19, mgough_at_squiz.net wrote:
> Hi,
>
> I've looked through the documentation and posts and haven't found
> exactly what I'm looking for.
>
> I have a Squid in front of two Apache servers for high availability
> reasons. Because sessions are involved for some functions, I'd like to
> configure Squid to send all requests to a particular Apache instance,
> and only to the other one if the preferred Apache fails.
>
> None of the peer selection methods in the cache_peer documentation seems
> to fit this exactly, although it looks like setting "default" to the
> failover instance would do the trick. However, the documentation
> indicates that ICP is needed for those options and these are Apaches
> rather than Squids.

The order of cache_peer configuration does this type of failover by
default when no selection method is given. The peers are listed top-down
in order of preference. The first available origin is used.

Amos

-- 
Please be using
   Current Stable Squid 2.7.STABLE9 or 3.1.10
   Beta testers wanted for 3.2.0.4
Received on Fri Jan 07 2011 - 04:53:20 MST

This archive was generated by hypermail 2.2.0 : Fri Jan 07 2011 - 12:00:02 MST