<div dir="ltr">Hi! I have a problem with backend probes not beeing sent, that seems very similar to what Luca Gervasi has reported(see below). <div>Luca: Did you ever figure out a fix?<div><br></div><div>I run varnish version 5.1.3-1~xenial on ubuntu/xenial with kernel 4.4.0-109-generic.</div><div><br></div><div>The behaviour I see is that I start up varnish, varnish sends one backend probe for each backend, bringing them up to Healthy status. After that, it seems like there are no more backend probes sent. </div><div><br></div><div>The backend replies correctly when I use curl, and anyway there is not indication that a probe fails. They are simply not sent in the first place, as far as I can tell.</div><div><br></div><div>Here is an example of my backend configuration:</div><div><div> .host = "foo1";</div><div> .port = "8080";</div><div> .connect_timeout = 0.4s;</div><div> .first_byte_timeout = 12s;</div><div> .between_bytes_timeout = 1s;</div><div> .max_connections = 40;</div><div> .probe = {</div><div> .url = "/healthcheck";</div><div> .timeout = 1s;</div><div> .interval = 6s;</div><div> .window = 5;</div><div> .threshold = 3;</div><div> }</div><div>}</div></div><div><br></div><div>My backend.list looks like this:</div><div><div>boot.foo1 probe Healthy 4/5 Fri, 12 Jan 2018 08:50:38 GMT</div><div>boot.foo2 probe Healthy 4/5 Fri, 12 Jan 2018 08:50:38 GMT</div></div><div><br></div><div>and here is an extract from backend.list -p:</div><div>boot.foo1 probe Healthy 4/5</div><div> Current states good: 4 threshold: 3 window: 5</div><div> Average response time of good probes: 0.002105</div><div> Oldest ================================================== Newest</div><div> --------------------------------------------------------------44 Good IPv4</div><div> --------------------------------------------------------------XX Good Xmit</div><div> --------------------------------------------------------------RR Good Recv</div><div> ------------------------------------------------------------HHHH Happy</div><div> </div><div><br></div><div>And running "varnishlog -g raw -i Backend_health" gives me no results back.</div><div><br></div><div>I also tested the exact same config on 5.2,1~xenial, but I get the same problem there. </div><div><br></div><div>I don't really understand what is going on here, or how I should proceed. Any help would be greatly appreciated!<br></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Best regards,<div>Håvard Futsæter</div></div></div></div>
<div class="gmail_extra"><br></div><br><div class="gmail_quote">2017-10-19 8:44 GMT+02:00 Luca Gervasi <span dir="ltr"><<a href="mailto:luca.gervasi@gmail.com" target="_blank">luca.gervasi@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi,<div>i have a strange issue where varnish suddenly stops sending probes thus declaring a backend healthy or sick till a next restart and i'm unable to determine why. Please note that my backend is able to receive my probes (and actually receives it), and i'm able to get a response every time i go with a curl -H "Host: healthcheck" <a href="http://10.32.161.89/balance_me" target="_blank">10.32.161.89/<wbr>balance_me</a>, so i'll consider my backend ultimately "good" and "able to respond". </div><div><br></div><div>Thanks a lot for every hint!</div><div>Luca</div><div><br></div><div>This is my backend configuration:</div><div><br></div><div><div>probe backend_check {</div><div> .request = "GET /balance_me HTTP/1.1"</div><div> "Host: healthcheck"</div><div> "Connection: close";</div><div> .timeout = 1s;</div><div> .interval = 2s;</div><div> .window = 5;</div><div> .threshold = 2;</div><div>}</div></div><div><div>backend othaph {</div><div> .host = "10.32.161.89";</div><div> .port = "80";</div><div> .connect_timeout = 1s;</div><div> .first_byte_timeout = 20s;</div><div> .between_bytes_timeout = 20s;</div><div> .probe = backend_check;</div><div>}</div><div><br></div></div><div>This is my "varnishadm backend.list"</div><div><div>boot.othaph probe Healthy 3/5<br></div><div><br></div></div><div>This is the total log of 20 minutes of "varnishlog -g raw -i Backend_health" (please note that above it shows 3/5 while i have only 2 probes sent, apparently)</div><div><div> 0 Backend_health - boot.othaph Back healthy 4--X-RH 2 2 5 0.067021 0.033510 HTTP/1.1 200 OK</div><div> 0 Backend_health - boot.othaph Still healthy 4--X-RH 3 2 5 0.015176 0.027399 HTTP/1.1 200 OK</div></div><div><br></div><div>And this is my "varnishadm backend.list -p"</div><div><div>Backend name Admin Probe</div><div>boot.othaph probe Healthy 3/5</div><div> Current states good: 3 threshold: 2 window: 5</div><div> Average response time of good probes: 0.027399</div><div> Oldest ==============================<wbr>==================== Newest</div><div> ------------------------------<wbr>------------------------------<wbr>--44 Good IPv4</div><div> ------------------------------<wbr>------------------------------<wbr>--XX Good Xmit</div><div> ------------------------------<wbr>------------------------------<wbr>--RR Good Recv</div><div> ------------------------------<wbr>------------------------------<wbr>-HHH Happy</div></div><div><br></div><div><br></div><div><br></div><div><br></div></div>
<br>______________________________<wbr>_________________<br>
varnish-misc mailing list<br>
<a href="mailto:varnish-misc@varnish-cache.org">varnish-misc@varnish-cache.org</a><br>
<a href="https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc" rel="noreferrer" target="_blank">https://www.varnish-cache.org/<wbr>lists/mailman/listinfo/<wbr>varnish-misc</a><br></blockquote></div><br></div></div></div>