Varnish 2.0.4 health check and startup question

Cosimo Streppone cosimo at streppone.it
Tue Oct 19 13:30:17 CEST 2010


I'm using Varnish 2.0.4 (but IIUC, 2.1 and trunk
seem to behave the same way) with backend health checks:

   backend b1 {
      .host = "localhost";
      .port = "8080";

      # Disabled to avoid the 15s startup time
      #.probe = {
      #   .url = "/ping.html";
      #    .interval = 5s;
      #    .timeout = 1s;
      #    .window = 5;
      #    .threshold = 3;
      #}
   }

Every time I restart varnish I can see
through debug.health that it's waiting for the
b1 backend to become healthy.

In my case that takes 15s (.interval * .threshold),
so restarting varnish with perfectly fine backend(s)
causes 15s of black out.

Is there a reason for the initial backend state
to be "sick" instead of "healthy"?

Thanks,

-- 
Cosimo




More information about the varnish-misc mailing list