<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>