<div dir="ltr">Hello ! <br><br>About cache_peer section:<br>cache_peer 1.2.3.1 parent 40001 0 no-query no-digest proxy-only name=proxy_1.2.3.1 round-robin<br>....<br>....<br>cache_peer 1.2.3.20 parent 40001 0 no-query no-digest proxy-only name=proxy_1.2.3.20 round-robin<br><br><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">сб, 20 мая 2023 г. в 16:58, Amos Jeffries <<a href="mailto:squid3@treenet.co.nz">squid3@treenet.co.nz</a>>:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 18/05/2023 6:58 pm, Alexeyяр Gruzdov wrote:<br>
> Hello guys !<br>
><br>
><br>
> *1. Question Number 1: *<br>
><br>
> A day ago I met with strange things of squid working.<br>
><br>
> I have twenty of cache_peer and these all works in round-robin mode<br>
> that means each new requests will operated by new cache_peer.<br>
><br>
> For example the five  from these twenty cache_peer is down. But others <br>
> is OK and live ( this is fifteet)<br>
><br>
> When I run my tests script for check - that I can see the first around <br>
> 10 - 30 seconds all looks OK and each new requests is going over next <br>
> one cache_peer.<br>
> But after these 10 - 30 seconds the round-robin mechanism stops to <br>
> operate and all new requests are going over one cache_peer (look like <br>
> this is FIRSTUP_PARENT but not the ROUNDROBIN_PARENT )<br>
<br>
Which mechanism is your Squid using to detect the peer recovery?<br>
Have you perhapse used "default" selection option on any of the peers?<br>
<br>
What cache_peer lines are you using exactly? (IP/port can be obscured)<br>
<br>
<br>
<br>
><br>
><br>
> *2. Question Number 2:*<br>
><br>
> Is there some mechanism to use some external script based on the <br>
> events of squid?<br>
> for example - squid generates a log message like<br>
>     "Detected DEAD Parent: proxy_42662"    ( that means some one <br>
> cache_peer unavailable ) and will be great to listens these message <br>
> and doing some actions ( the easiest its notification )<br>
<br>
<br>
Yes, but not for that particular event.<br>
<br>
HTH<br>
Amos<br>
<br>
_______________________________________________<br>
squid-users mailing list<br>
<a href="mailto:squid-users@lists.squid-cache.org" target="_blank">squid-users@lists.squid-cache.org</a><br>
<a href="http://lists.squid-cache.org/listinfo/squid-users" rel="noreferrer" target="_blank">http://lists.squid-cache.org/listinfo/squid-users</a><br>
</blockquote></div>