[squid-users] Re: R: [squid-users] Connection to webmail sitesproblem using more than one parent proxy

2008-11-07 Thread Amos Jeffries

Sergio wrote:
Hi Henrik, hi Amos 


Now with the last configuration it seems the sourcehas is working corectly.

So this is the final configuration 
cache_peer myparentproxy1.dipvvf.it parent 3128 3130 sourcehash no-query 
cache_peer myparentproxy2.dipvvf.it parent 3128 3130 sourcehash no-query 
cache_peer myparentproxy3.dipvvf.it parent 3128 3130 sourcehash no-query



I still have some questions for you,

1. In which way does the roundroubin with sourcehash work? I have noted the
first client requests are sent to the first parentproxy, only after some
client requests are established with the first, the new ones are sent to the
second and finally to the third. Is it possible to distribute the
connections to the parents equally based on the client request? E.g. the
request of first client send to the first parentproxy, the request of the
second client to the second parent proxy, the request of the third client to
the third parent proxy, the request of the fourth client to the first parent
proxy, the request of the fifth client to the second parent proxy and go on…



They are two very different ways of choosing a peer to send through:

round-robin - rotates through the peers per-request. So first request 
goes to first peer, seconds to second peer, etc.


sourcehash - spreads the possible client IPs over the number of 
available peers. ensuring an even number of clients go through each 
peer, BUT all requests from a single client go through the same peer.




2. Does sourcehash work only with no-query option? The no-query option
disable the icp protocol, doesn’t it?



ICP is yet another very different way of choosing the peer to send 
through. It's always on by default so needs to be turned off for the 
methods that break with ICP selection.


Amos




Da: Henrik Nordstrom [mailto:[EMAIL PROTECTED] 
Inviato: mercoledì 5 novembre 2008 10.42

A: Sergio Marchi
Cc: squid-users@squid-cache.org
Oggetto: Re: [squid-users] R: [squid-users] Connection to webmail
sitesproblem using more than one parent proxy

On tis, 2008-11-04 at 19:49 +0100, Sergio Marchi wrote:


cache_peer myparentproxy1.dipvvf.it parent 3128 3130 sourcehash
round-robin no-query


Don't mix round-robin and sourcehash. Not sure what will happen in such
confusing setup.

But you should indeed use no-query if you use sourcehash or round-robin.


It seems to work , but the connection are established only on one
parentproxy, even if  the clients ip addresses are different.


How many addresses did you try with? There is a 1/3 probability of two
addresses to end up on the same parent when having 3 srchash parents.

Regards
Henrik




--
Please be using
  Current Stable Squid 2.7.STABLE5 or 3.0.STABLE10
  Current Beta Squid 3.1.0.1


Re: [squid-users] Re: R: [squid-users] Connection to webmail sitesproblem using more than one parent proxy

2008-11-18 Thread Chris Robertson

Amos Jeffries wrote:


ICP is yet another very different way of choosing the peer to send 
through. It's always on by default so needs to be turned off for the 
methods that break with ICP selection.


Care to expound on this?  What cache_peer selection methods break with 
ICP enabled?  I'm not seeing anything regarding this in the 
documentation (http://www.squid-cache.org/Doc/config/cache_peer/)...




Amos


Chris


Re: [squid-users] Re: R: [squid-users] Connection to webmail sitesproblem using more than one parent proxy

2008-11-18 Thread Amos Jeffries
> Amos Jeffries wrote:
>>
>> ICP is yet another very different way of choosing the peer to send
>> through. It's always on by default so needs to be turned off for the
>> methods that break with ICP selection.
>
> Care to expound on this?  What cache_peer selection methods break with
> ICP enabled?  I'm not seeing anything regarding this in the
> documentation (http://www.squid-cache.org/Doc/config/cache_peer/)...
>

ICP is not compatible with:
  sourcehash
  userhash
  carp

It may 'unbalance' the following in a way favorable to higher response
speeds.
  round-robin
  weighted-round-robin
  icp
  closest-only

Amos




Re: [squid-users] Re: R: [squid-users] Connection to webmail sitesproblem using more than one parent proxy

2008-11-18 Thread Henrik Nordstrom
On tis, 2008-11-18 at 12:37 -0900, Chris Robertson wrote:

> Care to expound on this?  What cache_peer selection methods break with 
> ICP enabled?  I'm not seeing anything regarding this in the 
> documentation (http://www.squid-cache.org/Doc/config/cache_peer/)...

None or all depending on your viewpoint.. ICP is one of the peer
selection algorithms and has highest priority, so if the peer responds
to ICP then the peer selection is done by ICP..

Regards
Henrik


signature.asc
Description: This is a digitally signed message part