Re: [squid-users] Squid keep using one parent proxy while I have multiple parent proxies

2016-12-28 Thread Amos Jeffries

On 2016-12-27 16:37, wei wrote:

The curl command is:

curl -s -i http://showip.net [1]

The configuration in squid.conf is:

cache_peer 192.168.1.100 parent 3128 weight=5 no-query name=p1
round-robin
cache_peer 192.168.1.101 parent 3128 weight=5 no-query name=p2
round-robin
cache_peer 192.168.1.102 parent 3128 weight=5 no-query name=p3
round-robin


Since you have equal weightings on each peer they are irrelevant. Remove 
the weight=5 for better performance.





cache_peer_domain p1 .com
cache_peer_domain p1 .net
cache_peer_domain p2 .com
cache_peer_domain p2 .net
cache_peer_domain p3 .com
cache_peer_domain p3 .net


Please use the cache_peer_access directive instead. cache_peer_domain is 
deprecated.




From: wei

Hi Amos,

The Squid version I tested is 3.4.14(installed by yum on Centos 6.8)
and
3.4.8(installed by apt on Debian 7), both have the problem of use same
parent proxy after about 55 seconds. I also test 3.5.23(compiled by
default
parameter) and found the time increased from 55 to 85 seconds or so.
Thanks.


I have just checked the code. The round-robin counters are 'cleared' on 
a 5min cycle, on startup, on reconfigure, or when peers change from DEAD 
to ALIVE state "to prevent the revived CachePeer being flooded with 
requests which it has 'missed' during the down period."


So if your peers are being reset every minute, then either you are 
reconfiguring Squid that often, or they are constantly being detected as 
DEAD. Neither of which is good.


Amos

___
squid-users mailing list
squid-users@lists.squid-cache.org
http://lists.squid-cache.org/listinfo/squid-users


Re: [squid-users] Squid keep using one parent proxy while I have multiple parent proxies

2016-12-26 Thread wei
The curl command is:


curl -s -i http://showip.net


The configuration in squid.conf is:


cache_peer 192.168.1.100 parent 3128 weight=5 no-query name=p1 round-robin
cache_peer 192.168.1.101 parent 3128 weight=5 no-query name=p2 round-robin
cache_peer 192.168.1.102 parent 3128 weight=5 no-query name=p3 round-robin


cache_peer_domain p1 .com

cache_peer_domain p1 .net
cache_peer_domain p2 .com
cache_peer_domain p2 .net
cache_peer_domain p3 .com
cache_peer_domain p3 .net

Thanks


On 26 December 2016 at 15:32, Eliezer Croitoru  wrote:

Can you give a bash example with curl to replicate this issue?

Thanks,
Eliezer


http://ngtech.co.il/lmgtfy/
Linux System Administrator
Mobile: +972-5-28704261
Email: elie...@ngtech.co.il


From: squid-users [mailto:squid-users-boun...@lists.squid-cache.org] On
Behalf Of wei
Sent: Monday, December 26, 2016 3:34 AM
To: squ...@treenet.co.nz; squid-us...@squid-cache.org
Subject: Re: [squid-users] Squid keep using one parent proxy while I have
multiple parent proxies

Hi Amos,

The Squid version I tested is 3.4.14(installed by yum on Centos 6.8) and
3.4.8(installed by apt on Debian 7), both have the problem of use same
parent proxy after about 55 seconds. I also test 3.5.23(compiled by default
parameter) and found the time increased from 55 to 85 seconds or so. Thanks.

Regards,
Edwin




Message: 1
Date: Sun, 25 Dec 2016 23:25:34 +1300
From: Amos Jeffries <mailto:squ...@treenet.co.nz>
To: mailto:squid-users@lists.squid-cache.org
Subject: Re: [squid-users] Squid keep using one parent proxy while I
    havemultiple parent proxies
Message-ID: <mailto:6ace087dad7238ba88b6d89c84dfd...@treenet.co.nz>
Content-Type: text/plain; charset=US-ASCII; format=flowed

On 2016-12-24 15:43, wei wrote:
> I have the following cache_peer settings in squid.conf, it works fine
> but I found when the interval of every request is more than 55 seconds
> or so, the request will only be forwarded to the last parent(p3), I
> think this is because the counter being reset by squid if there is no
> new request for about 55 seconds, anyone know how to increase this
> value? Many thanks.
>
> cache_peer 192.168.1.100 parent 3128 weight=5 no-query name=p1
> round-robin
> cache_peer 192.168.1.101 parent 3128 weight=5 no-query name=p2
> round-robin
> cache_peer 192.168.1.102 parent 3128 weight=5 no-query name=p3
> round-robin


What version of Squid?

Amos


--

Subject: Digest Footer

___
squid-users mailing list
mailto:squid-users@lists.squid-cache.org
http://lists.squid-cache.org/listinfo/squid-users


___
squid-users mailing list
squid-users@lists.squid-cache.org
http://lists.squid-cache.org/listinfo/squid-users


Re: [squid-users] Squid keep using one parent proxy while I have multiple parent proxies

2016-12-26 Thread Eliezer Croitoru
Can you give a bash example with curl to replicate this issue?

Thanks,
Eliezer


http://ngtech.co.il/lmgtfy/
Linux System Administrator
Mobile: +972-5-28704261
Email: elie...@ngtech.co.il


From: squid-users [mailto:squid-users-boun...@lists.squid-cache.org] On
Behalf Of wei
Sent: Monday, December 26, 2016 3:34 AM
To: squ...@treenet.co.nz; squid-us...@squid-cache.org
Subject: Re: [squid-users] Squid keep using one parent proxy while I have
multiple parent proxies

Hi Amos,

The Squid version I tested is 3.4.14(installed by yum on Centos 6.8) and
3.4.8(installed by apt on Debian 7), both have the problem of use same
parent proxy after about 55 seconds. I also test 3.5.23(compiled by default
parameter) and found the time increased from 55 to 85 seconds or so. Thanks.

Regards,
Edwin




Message: 1
Date: Sun, 25 Dec 2016 23:25:34 +1300
From: Amos Jeffries <mailto:squ...@treenet.co.nz>
To: mailto:squid-users@lists.squid-cache.org
Subject: Re: [squid-users] Squid keep using one parent proxy while I
        have    multiple parent proxies
Message-ID: <mailto:6ace087dad7238ba88b6d89c84dfd...@treenet.co.nz>
Content-Type: text/plain; charset=US-ASCII; format=flowed

On 2016-12-24 15:43, wei wrote:
> I have the following cache_peer settings in squid.conf, it works fine
> but I found when the interval of every request is more than 55 seconds
> or so, the request will only be forwarded to the last parent(p3), I
> think this is because the counter being reset by squid if there is no
> new request for about 55 seconds, anyone know how to increase this
> value? Many thanks.
> 
> cache_peer 192.168.1.100 parent 3128 weight=5 no-query name=p1
> round-robin
> cache_peer 192.168.1.101 parent 3128 weight=5 no-query name=p2
> round-robin
> cache_peer 192.168.1.102 parent 3128 weight=5 no-query name=p3
> round-robin


What version of Squid?

Amos


--

Subject: Digest Footer

___
squid-users mailing list
mailto:squid-users@lists.squid-cache.org
http://lists.squid-cache.org/listinfo/squid-users


___
squid-users mailing list
squid-users@lists.squid-cache.org
http://lists.squid-cache.org/listinfo/squid-users


Re: [squid-users] Squid keep using one parent proxy while I have multiple parent proxies

2016-12-25 Thread wei
Hi Amos,

The Squid version I tested is 3.4.14(installed by yum on Centos 6.8) and 
3.4.8(installed by apt on Debian 7), both have the problem of use same parent 
proxy after about 55 seconds. I also test 3.5.23(compiled by default parameter) 
and found the time increased from 55 to 85 seconds or so. Thanks.

Regards,
Edwin





Message: 1
Date: Sun, 25 Dec 2016 23:25:34 +1300
From: Amos Jeffries 
To: squid-users@lists.squid-cache.org
Subject: Re: [squid-users] Squid keep using one parent proxy while I
havemultiple parent proxies
Message-ID: <6ace087dad7238ba88b6d89c84dfd...@treenet.co.nz>
Content-Type: text/plain; charset=US-ASCII; format=flowed

On 2016-12-24 15:43, wei wrote:
> I have the following cache_peer settings in squid.conf, it works fine
> but I found when the interval of every request is more than 55 seconds
> or so, the request will only be forwarded to the last parent(p3), I
> think this is because the counter being reset by squid if there is no
> new request for about 55 seconds, anyone know how to increase this
> value? Many thanks.
>
> cache_peer 192.168.1.100 parent 3128 weight=5 no-query name=p1
> round-robin
> cache_peer 192.168.1.101 parent 3128 weight=5 no-query name=p2
> round-robin
> cache_peer 192.168.1.102 parent 3128 weight=5 no-query name=p3
> round-robin


What version of Squid?

Amos


--

Subject: Digest Footer

___
squid-users mailing list
squid-users@lists.squid-cache.org
http://lists.squid-cache.org/listinfo/squid-users

___
squid-users mailing list
squid-users@lists.squid-cache.org
http://lists.squid-cache.org/listinfo/squid-users


Re: [squid-users] Squid keep using one parent proxy while I have multiple parent proxies

2016-12-25 Thread wei
Hi Amos,

The Squid version I tested is 3.4.14(installed by yum on Centos 6.8) and 
3.4.8(installed by apt on Debian 7), both have the problem of use same parent 
proxy after about 55 seconds. I also test 3.5.23(compiled by default parameter) 
and found the time increased from 55 to 85 seconds or so. Thanks.

Regards,
Edwin





Message: 1
Date: Sun, 25 Dec 2016 23:25:34 +1300
From: Amos Jeffries 
To: squid-users@lists.squid-cache.org
Subject: Re: [squid-users] Squid keep using one parent proxy while I
havemultiple parent proxies
Message-ID: <6ace087dad7238ba88b6d89c84dfd...@treenet.co.nz>
Content-Type: text/plain; charset=US-ASCII; format=flowed

On 2016-12-24 15:43, wei wrote:
> I have the following cache_peer settings in squid.conf, it works fine
> but I found when the interval of every request is more than 55 seconds
> or so, the request will only be forwarded to the last parent(p3), I
> think this is because the counter being reset by squid if there is no
> new request for about 55 seconds, anyone know how to increase this
> value? Many thanks.
>
> cache_peer 192.168.1.100 parent 3128 weight=5 no-query name=p1
> round-robin
> cache_peer 192.168.1.101 parent 3128 weight=5 no-query name=p2
> round-robin
> cache_peer 192.168.1.102 parent 3128 weight=5 no-query name=p3
> round-robin


What version of Squid?

Amos


--

Subject: Digest Footer

___
squid-users mailing list
squid-users@lists.squid-cache.org
http://lists.squid-cache.org/listinfo/squid-users

___
squid-users mailing list
squid-users@lists.squid-cache.org
http://lists.squid-cache.org/listinfo/squid-users


Re: [squid-users] Squid keep using one parent proxy while I have multiple parent proxies

2016-12-25 Thread Amos Jeffries

On 2016-12-24 15:43, wei wrote:

I have the following cache_peer settings in squid.conf, it works fine
but I found when the interval of every request is more than 55 seconds
or so, the request will only be forwarded to the last parent(p3), I
think this is because the counter being reset by squid if there is no
new request for about 55 seconds, anyone know how to increase this
value? Many thanks.

cache_peer 192.168.1.100 parent 3128 weight=5 no-query name=p1
round-robin
cache_peer 192.168.1.101 parent 3128 weight=5 no-query name=p2
round-robin
cache_peer 192.168.1.102 parent 3128 weight=5 no-query name=p3
round-robin



What version of Squid?

Amos
___
squid-users mailing list
squid-users@lists.squid-cache.org
http://lists.squid-cache.org/listinfo/squid-users