Squid Failover ideas

From: <kevin.davies@dont-contact.us>
Date: Fri, 5 Mar 1999 16:07:04 +1000

Dear Squid Developers,

I am setting up squid to talk to an upline netcache proxy. In doing this I have
thought of a
number of suggestion that hopefully will make squid a better proxy.

When defining never_direct it does not allow for the case where the parent proxy
dies.
The assumption is a firewall proxy but in our case the parent is a content
filtering proxy.
I want all traffic to go to the parent. If it dies then go direct. The only way
I was able to
achieve this was to specify a single no-query parent. I believe there may be
another way to
configure this but it would be far simpler to construct the decision logic in a
simple way
inside the configuration file. An example follows... (if anyone would know how
to configure a
failover arrangement please let me know)

acl parent netcache 203.243.12.3/255.255.255.255
acl sibling sister1 203.244.13.5/255.255.255.255
acl sibling sister2 203.244.13.6/255.255.255.255
acl peer_status dead no-response
act request_mode direct DIRECT

acl dst localnets 232.232.232.0/255.255.255.0
acl all src 0.0.0.0/0.0.0.0

cache_peer netcache 8080 3130 no-query
cache_peer sister1 8080 3130
cache_peer sister2 8080 3130 standby

# now we use this

always_direct localnets
always_direct dead netcache
never_direct all

# or these

#failover would override always_direct and never_direct
failover direct dead netcache

always_direct localnets
never_direct all

Any help appreciated...

Kevin
Received on Thu Mar 04 1999 - 23:04:44 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:45:08 MST