[squid-users] cache_peer selection
Amos Jeffries
squid3 at treenet.co.nz
Sun May 14 04:32:45 UTC 2023
On 13/05/2023 2:53 am, Alex Rousskov wrote:
> On 5/12/23 07:28, Alexeyяр Gruzdov wrote:
>> Hello Guys!
>>
>> Thank you for your help that was before!
>>
>> Could you explain somethings - For example I have a five cache_peer
>> servers
>>
>> peer1
>> peer2
>> peer3
>> peer4
>>
>>
>> And users like:
>>
>> User-100
>> User-101
>>
>> For forwarding requests over existed cache_peer I use an external
>> ACL and "note" option - all works well.
>>
>> Now I'd like to implement the next logic:
>> This is something like a failover of specified cache_peers for
>> specified user.
One trick I use is to list each cache_peer twice (like: A1, B1, C1, A2 ,
B2, C2). Just use a different name= parameter for each cache_peer line.
That way I can "loop" the order when I want A,B to be a failover from C.
Like this: C1, A2, B2.
HTH
Amos
More information about the squid-users
mailing list