Search squid archive

RE: [squid-users] Select parent without ICP

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> -----Original Message-----
> From: Paul Dugas [mailto:paul@xxxxxxxxxxxxxxxxxxxx]
> Sent: Tuesday, February 08, 2005 6:58 AM
> To: Squid Users Mailing List
> Subject: [squid-users] Select parent without ICP
> 
> 
> Wondering if this will work...  I have a laptop that moves with me between
> multiple networks.  I'm wondering it I might setup squid to know about the
> available proxy servers on each of them and "figure out" which one it
> should be using.  I need to do this without using ICP as most of them are
> actually WinISA proxys (shudder).
> 
> I'm running a stock Fedora Core 3 distribution with updates.  I've
> adjusted squid.conf to add the following entries:
> 
> cache_peer 192.168.1.1 parent 8080 0 no-query
> cache_peer 10.0.0.1 parent 8080 0 no-query
> cache_peer 192.168.200.1 parent 8080 0 no-query login=foo:bar
> 
> prefer_direct off
> 
> When I'm on the 192.168.1.x network, all is well and it never seems to
> even try connecting to the other two peers.  When I'm on one of the other
> two, it seems to be stuck trying to connect to the first one.
> 
> I've tried adding connect-timeout=5 to each cache_peer entry with no
change.
> 
> Is this just not possible?  Is there a better approach?
> 
> Paul

Add round-robin to the cache_peer lines (i.e. cache_peer 192.168.1.1 parent
8080 0 no-query round-robin) and you'll be set.  Make sure you add it to all
the lines so they are all part of the round-robin queue.  Squid will
automatically detect "dead" parents and not try to proxy through them.

Chris

[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux