<div dir="ltr"><div>Hi George,</div><div><br></div><div>Just to be sure, how is the probe "health" defined in your VCL?</div><div><br></div><div>Cheers,</div><div><br></div><div><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>-- <br></div><div>Guillaume Quintard<br></div></div></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Apr 17, 2023 at 1:23 AM George <<a href="mailto:izghitu@gmail.com">izghitu@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Hi,</div><div><br></div><div>I have a Varnish/nginx cluster running with varnish-7.1.2-1.el7.x86_64 on CentOS 7.</div><div><br></div><div>The issue I am having comes from the varnish health checks. I am getting a "broken pipe" error in the nginx error log at random times like below:</div><div>Apr 10 17:32:46 VARNISH-MASTER nginx_varnish_error: 2023/04/10 17:32:46 [info] 17808#17808: *67626636 writev() failed (32: Broken pipe), client: unix:, server: _, request: "GET /varnish_check HTTP/1.1", host: "0.0.0.0"</div><div><br></div><div>The strange thing is that this error appears only when Varnish performs the health checks. I have other scripts doing it(nagios, curl, wget, AWS ELB) but those do not show any errors. In addition to this Varnish and nginx where the health checks occur are on the same server and it makes no difference if I use a TCP connection or socket based one.</div><div><br></div><div>Below are the varnish vcl and nginx locations for the health checks:</div><div>backend nginx_varnish {<br>                   .path = "/run/nginx/nginx.sock";<br>                   .first_byte_timeout = 600s;<br>                   .probe = health;<br>        }</div><div><br></div><div>location = /varnish_check {<br>                keepalive_timeout 305;<br>                return 200 'Varnish Check';<br>                access_log /var/log/nginx/varnish_check.log main;<br>                error_log /var/log/nginx/varnish_check_errors.log debug;<br>                error_log syslog:server=unix:/run/nginx_log.in.sock,facility=local1,tag=nginx_varnish_error,nohostname info;<br>        }</div><div><br></div><div>Are there any docs I can read about how exactly varnish performs the health checks and what internal processes are involved?</div><div>Did anyone happen to have similar issues? This is not causing any operational problems for the cluster but it is just something that I want to determine why it is happening because it just should not be happening.</div><div><br></div><div>Please help</div><div>THanks in advance.<br></div><div><br></div></div>
_______________________________________________<br>
varnish-misc mailing list<br>
<a href="mailto:varnish-misc@varnish-cache.org" target="_blank">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/lists/mailman/listinfo/varnish-misc</a><br>
</blockquote></div>