Re: [squid-users] Failover with 2 parents

2005-05-27 Thread Henrik Nordstrom

On Thu, 26 May 2005, Konstantin Polihronov wrote:


In the A-office I'm using child-proxy which redirects requests to the
parent1, and I want to make failover in case when internet line for parent1
is down to redirect requests to parent2 in branch2.


If you use ICP then this should be automatic after some time, when the 
parent detects it's Internet is not working and enters so called Hit only 
mode. But this takes a while before it kicks in (there must be a 
significant amount of failed requests on that Squid for Hit only mode to 
be activated).


If the parents have a reasonably short connect_timeout then the failover 
should also be automatic. But at the same time this increases the risk of 
false failures when the origin web server is just slow at accepting the 
connection so it is not an universal solution to the problem.


Regards
Henrik


Re: [squid-users] Failover with 2 parents

2005-05-26 Thread Ian . Large
Hi Konstantin

 In the A-office I'm using child-proxy which redirects
 requests to the parent1, and I want to make failover
 in case when internet line for parent1 is down to
 redirect requests to parent2 in branch2.

We do something similar and our config is as follows:

cache_peer 10.1.226.93 parent 80 3130 no-digest weight=5 login=PASS
cache_peer 10.1.2.93 parent 80 3130 no-query no-digest weight=1 login=PASS
peer_connect_timeout 5 seconds

This sends the connections normally to 10.1.226.93 which is via a fast 
link and if that link is down it fails over to the secondary connection. 
Seems to work okay...
-- 
Ian Large [EMAIL PROTECTED]
IT Department, Christian Salvesen, Lodge Way,
New Duston, Northampton NN5 7SL, United Kingdom
Tel: +44 1604 737100 x760 Fax: +44 1604 737111







For information on Christian Salvesen visit our website at www.salvesen.com.



The information contained in this e-mail is strictly confidential and for the 
use of the addressee only; it may also be legally privileged and / or price 
sensitive.  Notice is hereby given that any disclosure, use or copying of the 
information by anyone other than the intended recipient is prohibited and may 
be illegal.  If you have received this message in error, please notify the 
sender immediately by return e-mail.



Christian Salvesen has taken every reasonable precaution to ensure that any 
attachment to this e-mail has been swept for viruses.  However, we cannot 
accept liability for any damage sustained as a result of software viruses and 
would advise that you carry out your own virus checks before opening any 
attachment.



Christian Salvesen is a trading name of the Christian Salvesen Group.  
Christian Salvesen PLC (Company number SC7173) is the ultimate holding company 
within the Christian Salvesen Group whose registered office is at 16 Charlotte 
Square, Edinburgh EH2 4DF.