<div dir="ltr">Hi Nick,<div><br></div><div>Thanks for your reply! I tried a different probe. No luck so far:</div><div><br></div><div><div>backend web1 Â {</div><div>Â .host = "10.10.1.94";</div><div>Â .port = "80";</div>
<div>Â .probe = {</div><div>Â Â Â Â Â Â Â Â .url = "/healthcheck.html";</div><div>Â Â Â Â Â Â Â Â .timeout = 34 ms;</div><div>Â Â Â Â Â Â Â Â .interval = 1s;</div><div>Â Â Â Â Â Â Â Â .window = 10;</div><div>Â Â Â Â Â Â Â Â .threshold = 8;</div>
<div>Â }</div><div>}</div><div><br></div><div>backend web2 Â {</div><div><br></div><div>Â .host = "10.10.1.98";</div><div>Â .port = "80";</div><div>Â Â .probe = {</div><div>Â Â Â Â Â Â Â Â .url = "/healthcheck.html";</div>
<div>Â Â Â Â Â Â Â Â .timeout = 34 ms;</div><div>Â Â Â Â Â Â Â Â .interval = 1s;</div><div>Â Â Â Â Â Â Â Â .window = 10;</div><div>Â Â Â Â Â Â Â Â .threshold = 8;</div><div>Â }</div><div>}</div><div><br></div><div>director www client {</div>
<div>Â { .backend = web1 ; .weight = 2; Â }</div><div>Â { .backend = web2 ; .weight = 2; Â }</div><div>Â }</div></div><div><br></div><div><br></div><div>This is all the healthcheck file does:</div><div><br></div><div><div>[root@beta:/var/www/jf-ref] #cat healthcheck.html</div>
<div>good</div></div><div><br></div><div>Drum roll please!! AAAAnnnnnd:</div><div><br></div><div><div>[root@varnish1:/etc/varnish] #varnishlog | grep web2</div><div>Â Â 0 Backend_health - web2 Still sick ------- 0 8 10 0.000000 0.000000</div>
<div>Â Â 0 Backend_health - web2 Still sick ------- 0 8 10 0.000000 0.000000</div><div>Â Â 0 Backend_health - web2 Still sick ------- 0 8 10 0.000000 0.000000</div><div>Â Â 0 Backend_health - web2 Still sick ------- 0 8 10 0.000000 0.000000</div>
<div>Â Â 0 Backend_health - web2 Still sick ------- 0 8 10 0.000000 0.000000</div><div>Â Â 0 Backend_health - web2 Still sick ------- 0 8 10 0.000000 0.000000</div><div>Â Â 0 Backend_health - web2 Still sick ------- 0 8 10 0.000000 0.000000</div>
<div>Â Â 0 Backend_health - web2 Still sick ------- 0 8 10 0.000000 0.000000</div><div>Â Â 0 Backend_health - web2 Still sick ------- 0 8 10 0.000000 0.000000</div></div><div><br></div><div>Bummer. :(Â </div><div><br></div>
<div>No joy at all.</div><div><br></div><div>Thanks for playing!</div><div>Tim</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, May 12, 2014 at 10:03 PM, nick tailor <span dir="ltr"><<a href="mailto:nick.tailor@gmail.com" target="_blank">nick.tailor@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p dir="ltr">Try using a custom health check probe</p>
<div class="gmail_quote"><div><div class="h5">On May 9, 2014 10:00 PM, "Tim Dunphy" <<a href="mailto:bluethundr@gmail.com" target="_blank">bluethundr@gmail.com</a>> wrote:<br type="attribution"></div></div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">
<div dir="ltr">Hey all,<div><br></div><div> I have two web backends in my varnish config. And one node is reporting healthy and the other is being reported as 'sick'.</div><div><br></div><div><div>10 Backend    c 11 www web1</div>
<div>Â Â 0 Backend_health - web1 Still healthy 4--X-RH 5 3 5 0.001130 0.001067 HTTP/1.1 200 OK</div><div>Â Â 0 Backend_health - web1 Still healthy 4--X-RH 5 3 5 0.001231 0.001108 HTTP/1.1 200 OK</div><div>Â Â 0 Backend_health - web1 Still healthy 4--X-RH 5 3 5 0.001250 0.001143 HTTP/1.1 200 OK</div>
<div>Â Â 0 Backend_health - web1 Still healthy 4--X-RH 5 3 5 0.001127 0.001139 HTTP/1.1 200 OK</div><div>Â Â 0 Backend_health - web1 Still healthy 4--X-RH 5 3 5 0.001208 0.001157 HTTP/1.1 200 OK</div><div>Â Â 0 Backend_health - web1 Still healthy 4--X-RH 5 3 5 0.001562 0.001258 HTTP/1.1 200 OK</div>
<div>Â Â 0 Backend_health - web1 Still healthy 4--X-RH 5 3 5 0.001545 0.001330 HTTP/1.1 200 OK</div><div>Â Â 0 Backend_health - web1 Still healthy 4--X-RH 5 3 5 0.001363 0.001338 HTTP/1.1 200 OK</div><div>Â Â 11 BackendClose b web1</div>
<div><br></div><div><div>[root@varnish1:/etc/varnish] #varnishlog | grep web2</div><div>Â Â 0 Backend_health - web2 Still sick 4--X--- 0 3 5 0.000000 0.000000</div><div>Â Â 0 Backend_health - web2 Still sick 4--X--- 0 3 5 0.000000 0.000000</div>
<div>Â Â 0 Backend_health - web2 Still sick 4--X--- 0 3 5 0.000000 0.000000</div><div>Â Â 0 Backend_health - web2 Still sick 4--X--- 0 3 5 0.000000 0.000000</div><div>Â Â 0 Backend_health - web2 Still sick 4--X--- 0 3 5 0.000000 0.000000</div>
<div>Â Â 0 Backend_health - web2 Still sick 4--X--- 0 3 5 0.000000 0.000000</div><div>Â Â 0 Backend_health - web2 Still sick 4--X--- 0 3 5 0.000000 0.000000</div><div>Â Â 0 Backend_health - web2 Still sick 4--X--- 0 3 5 0.000000 0.000000</div>
<div>  0 Backend_health - web2 Still sick 4--X--- 0 3 5 0.000000 0.000000</div></div><div><br></div><div>And I'm really at a loss to understand why. Both nodes should be completely identical. And the web roots on both are basically svn repos that are in sync. </div>
<div><br></div><div>From web1 :</div><div><br></div><div><div>[root@beta:/var/www/jf-current] #svn info | grep -i revision</div><div>Revision: 17</div></div><div><br></div><div>To web2:</div><div><br></div><div><div>[root@beta-new:/var/www/jf-current] #svn info | grep -i revision</div>
<div>Revision: 17</div></div><div><br></div><div>This is the part of my vcl file where I define the web back ends:</div><div><br></div><div><div>probe favicon {</div><div>Â .url = "/favicon.ico";</div><div>Â .timeout = 60ms;</div>
<div>Â .interval = 2s;</div><div>Â .window = 5;</div><div>Â .threshold = 3;</div><div>}</div><div><br></div><div>backend web1 Â {</div><div>Â .host = "xx.xx.xx.xx";</div><div>Â .port = "80";</div><div>
 .probe = favicon;</div>
<div>}</div><div><br></div><div>backend web2 Â {</div><div><br></div><div>Â .host = "xx.xx.xx.xx";</div><div>Â .port = "80";</div><div>Â .probe = favicon;</div><div>}</div></div><div><br></div><div>And the file that varnish is probing for is present on both:</div>
<div><br></div><div><div>[root@beta:/var/www/jf-current] #ls -l /var/www/jf-current/favicon.ico</div><div>-rwxrwxr-x 1 apache ftp 1150 Dec 22 00:53 /var/www/jf-current/favicon.ico</div></div><div><br></div><div>I've also setup individual web URLs for each host that isn't cached in varnish so I can hit each one. And each site comes up ok. So I'm a little puzzled as to why the second web host is reporting 'sick' and what I can do to get it back into load balancing. </div>
<div><br></div><div>Thanks for any help you can provide!</div><div><br></div><div>Tim</div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div>-- <br>GPG me!!<br><br>gpg --keyserver <a href="http://pool.sks-keyservers.net" target="_blank">pool.sks-keyservers.net</a> --recv-keys F186197B<br>
<br>
</div></div>
<br></div></div><div class="">_______________________________________________<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" target="_blank">https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc</a><br></div></blockquote></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>GPG me!!<br><br>gpg --keyserver <a href="http://pool.sks-keyservers.net" target="_blank">pool.sks-keyservers.net</a> --recv-keys F186197B<br><br>
</div>