Re: [squid-users] Switch cache peer Parent server for every 30 minutes

2020-06-16 Thread Prem Chand
Hi Alex, Could you please share with me a rough sketch example for the below statement. "but I suspect that a clever combination of annotate_transaction and "note" ACLs in cache_peer_access rules can be used to force a particular cache peer selection order." On Mon, Jun 15, 2020 at 7:14 PM Alex R

Re: [squid-users] Switch cache peer Parent server for every 30 minutes

2020-06-15 Thread Alex Rousskov
On 6/15/20 3:26 AM, Prem Chand wrote: > I stopped the peerA(purposefully)  and noticed that requests are failing > for the time slots that are going through peerA. I used > "connect-fail-limit" in cache_peer  but it's not working. Is there any > way we can address this issue using the same solutio

Re: [squid-users] Switch cache peer Parent server for every 30 minutes

2020-06-15 Thread Prem Chand
Hi Alex, I stopped the peerA(purposefully) and noticed that requests are failing for the time slots that are going through peerA. I used "connect-fail-limit" in cache_peer but it's not working. Is there any way we can address this issue using the same solution considering how to handle the reque

Re: [squid-users] Switch cache peer Parent server for every 30 minutes

2020-06-12 Thread Alex Rousskov
On 6/11/20 11:52 PM, Prem Chand wrote: > It's working as expected. I tried to allow only specific domains during > the time by adding below acl but I'm getting HTTP status code 503 > acl usePeerB time 00:30-00:59 > acl usePeerB time 02:00-02:29 > acl alloweddomains dstdomain google.com facebook.c

Re: [squid-users] Switch cache peer Parent server for every 30 minutes

2020-06-11 Thread Prem Chand
Hi Alex, It's working as expected. I tried to allow only specific domains during the time by adding below acl but I'm getting HTTP status code 503 in my access.log, below is my configuration. Could you please let me know what I'm missing here. acl usePeerB time 00:30-00:59 acl usePeerB time 02:00

Re: [squid-users] Switch cache peer Parent server for every 30 minutes

2020-06-10 Thread Alex Rousskov
On 6/10/20 12:20 PM, Antony Stone wrote: > On Wednesday 10 June 2020 at 18:11:03, Prem Chand wrote: > >> Hi Alex, >> >> Thanks for responding to my issue . I didn't get how the math was done(why >> it's multiplied by 2) to get 16 slots if possible could you please elaborate >> with an example. >

Re: [squid-users] Switch cache peer Parent server for every 30 minutes

2020-06-10 Thread Antony Stone
On Wednesday 10 June 2020 at 18:11:03, Prem Chand wrote: > Hi Alex, > > Thanks for responding to my issue . I didn't get how the math was done(why > it's multiplied by 2) to get 16 slots if possible could you please elaborate > with an example. I believe what Alex meant was: You want 30 minute

Re: [squid-users] Switch cache peer Parent server for every 30 minutes

2020-06-10 Thread Prem Chand
Hi Alex, Thanks for responding to my issue . I didn't get how the math was done(why it's multiplied by 2) to get 16 slots if possible could you please elaborate with an example. Regards Premchand On Wed, Jun 10, 2020 at 7:12 PM Alex Rousskov < rouss...@measurement-factory.com> wrote: > On 6/10

Re: [squid-users] Switch cache peer Parent server for every 30 minutes

2020-06-10 Thread Alex Rousskov
On 6/10/20 6:09 AM, Prem Chand wrote: > My squid cache peer has 3 parent IP’s configured. I need to send HTTPS > requests to the first parent IP for 30 minutes and after to the 2nd > parent IP for 30 minutes and then to 3rd IP for 30 minutes and this > switching needs to happen continuously .Could

[squid-users] Switch cache peer Parent server for every 30 minutes

2020-06-10 Thread Prem Chand
Hi , My squid cache peer has 3 parent IP’s configured. I need to send HTTPS requests to the first parent IP for 30 minutes and after to the 2nd parent IP for 30 minutes and then to 3rd IP for 30 minutes and this switching needs to happen continuously .I tried round robin but the requests are equal