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

2008-11-05 Thread Henrik Nordstrom
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


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


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

2008-11-04 Thread Sergio Marchi
Hi Amos!

I have tried, to disable the ICP queries with the option "no-query"
and the  configuration look like that:

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

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

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


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

What's wrong?

Can u tellme where can I found some good example of configuration
related to my problem?

Thank you once a time!

Sergio




On Mon, Nov 3, 2008 at 11:55 PM, Amos Jeffries <[EMAIL PROTECTED]> wrote:
> Sergio wrote:
>>
>> Hi Amos!
>> Thank you for your replying.
>>
>> I have changed squid version ( now is running the 2.7 stable5) and I have
>> modified the parents peers in that way:
>>
>>  parentproxy1.mydomain.it parent 3128 3130 sourcehash
>>  parentproxy2.mydomain.it parent 3128 3130 sourcehash
>>  parentproxy3.mydomain.it parent 3128 3130 sourcehash
>>
>> But I still have the same problem.
>>
>> I tried also in this way, but it didn't work as well :
>>
>> parentproxy1.mydomain.it parent 3128 3130 roundrobin sourcehash
>> parentproxy2.mydomain.it parent 3128 3130 roundrobin sourcehash
>> parentproxy3.mydomain.it parent 3128 3130 roundrobin sourcehash
>>
>> I'm wondering whether the configuration is correct, or not.
>
> Just the top config should have worked. It selects the parent based on
> client source IP.
> Something else must be going on.
>
>> Do you have some better tips about how to configuring it?
>>
>> Hope to have nice news from you!
>>
>> Thanks a lot for help!
>>
>> Sergio
>>
>> -Messaggio originale-
>> Da: Amos Jeffries [mailto:[EMAIL PROTECTED] Inviato: sabato 1 novembre
>> 2008 4.40
>> A: Sergio
>> Cc: squid-users@squid-cache.org
>> Oggetto: Re: [squid-users] Connection to webmail sites problem using more
>> than one parent proxy
>>
>> Sergio wrote:
>>>
>>> Hello Everybody,
>>>
>>>
>>> We have this scenario:
>>>
>>> We have proxy connected to internet trough 3 parent proxy
>>>
>>> [client]
>>>|
>>>|
>>> [proxy]
>>>|
>>>|
>>>+-+---+
>>>| |   |
>>>
>>> [parentproxy1],[parentproxy2],[parentproxy3]
>>>
>>>
>>>
>>> We have trouble with some  webmail sites ( eg. mail.tiscali.it) that
>>> don't
>>> keep the connection on the session.
>>> We have this problem when the proxy establishes the connection using all
>>
>> the
>>>
>>> proxy serves.
>>> If we use only a proxy server as parent the session is not missed.
>>>
>>> This the localproxy configuration for the cache peers:
>>>
>>> cache_peer parentproxy1.mydomain.it parent 3128 3130
>>> cache_peer parentproxy2.mydomain.it parent 3128 3130
>>> cache_peer parentproxy3.mydomain.it parent 3128 3130
>>>
>>> we use squid 2.5 stable7 version for Windows.
>>> The parent proxies use squid 2.5 stable7 for windows as well and go out
>>> directly to Internet.
>>> How can we override this problem?
>>> Thank you in advance guys!
>>>
>>>
>>> Sergio
>>>
>>>
>>>
>>> Ps.
>>>
>>> We also contacted the Tiscali customer care, but they didn't give us any
>>> useful information!
>>>
>>
>> Forgot to mention in my earlier reply.
>> If you upgrade to current squid the srchash peering algorithm is available
>> to ensure that all requests from a given client IP go through a certain
>> parent. This is hash balanced across all the active parents and handles
>> parents proxies going up/down without breaking client access.
>>
>> Amos
>
>
> --
> Please be using
>  Current Stable Squid 2.7.STABLE5 or 3.0.STABLE10
>  Current Beta Squid 3.1.0.1
>


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

2008-11-03 Thread Amos Jeffries

Sergio wrote:

Hi Amos!
Thank you for your replying.

I have changed squid version ( now is running the 2.7 stable5) and I have
modified the parents peers in that way:

 parentproxy1.mydomain.it parent 3128 3130 sourcehash
 parentproxy2.mydomain.it parent 3128 3130 sourcehash
 parentproxy3.mydomain.it parent 3128 3130 sourcehash

But I still have the same problem.

I tried also in this way, but it didn't work as well :

parentproxy1.mydomain.it parent 3128 3130 roundrobin sourcehash
parentproxy2.mydomain.it parent 3128 3130 roundrobin sourcehash
parentproxy3.mydomain.it parent 3128 3130 roundrobin sourcehash

I'm wondering whether the configuration is correct, or not.


Just the top config should have worked. It selects the parent based on 
client source IP.

Something else must be going on.


Do you have some better tips about how to configuring it?

Hope to have nice news from you!

Thanks a lot for help!

Sergio 



-Messaggio originale-
Da: Amos Jeffries [mailto:[EMAIL PROTECTED] 
Inviato: sabato 1 novembre 2008 4.40

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

Sergio wrote:

Hello Everybody,


We have this scenario:

We have proxy connected to internet trough 3 parent proxy

[client]
|
|
[proxy]
|
|
+-+---+
| |   |

[parentproxy1],[parentproxy2],[parentproxy3]



We have trouble with some  webmail sites ( eg. mail.tiscali.it) that don't
keep the connection on the session.
We have this problem when the proxy establishes the connection using all

the

proxy serves.
If we use only a proxy server as parent the session is not missed.

This the localproxy configuration for the cache peers:

cache_peer parentproxy1.mydomain.it parent 3128 3130
cache_peer parentproxy2.mydomain.it parent 3128 3130
cache_peer parentproxy3.mydomain.it parent 3128 3130

we use squid 2.5 stable7 version for Windows.
The parent proxies use squid 2.5 stable7 for windows as well and go out
directly to Internet.
How can we override this problem?
Thank you in advance guys!


Sergio



Ps.

We also contacted the Tiscali customer care, but they didn't give us any
useful information!



Forgot to mention in my earlier reply.
If you upgrade to current squid the srchash peering algorithm is 
available to ensure that all requests from a given client IP go through 
a certain parent. This is hash balanced across all the active parents 
and handles parents proxies going up/down without breaking client access.


Amos



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