You should check the archives and the Varnish site.  A feature to enable "priming" the health checks was introduced in r4185 and released with 2.0.5 I believe.  I would suggest you use the latest 2.1 release and set the .initial probe variable equal to your threshold.<br clear="all">
-- <div>Ken</div><br>
<br><br><div class="gmail_quote">On Tue, Oct 19, 2010 at 4:30 AM, Cosimo Streppone <span dir="ltr"><<a href="mailto:cosimo@streppone.it">cosimo@streppone.it</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
I'm using Varnish 2.0.4 (but IIUC, 2.1 and trunk<br>
seem to behave the same way) with backend health checks:<br>
<br>
  backend b1 {<br>
     .host = "localhost";<br>
     .port = "8080";<br>
<br>
     # Disabled to avoid the 15s startup time<br>
     #.probe = {<br>
     #   .url = "/ping.html";<br>
     #    .interval = 5s;<br>
     #    .timeout = 1s;<br>
     #    .window = 5;<br>
     #    .threshold = 3;<br>
     #}<br>
  }<br>
<br>
Every time I restart varnish I can see<br>
through debug.health that it's waiting for the<br>
b1 backend to become healthy.<br>
<br>
In my case that takes 15s (.interval * .threshold),<br>
so restarting varnish with perfectly fine backend(s)<br>
causes 15s of black out.<br>
<br>
Is there a reason for the initial backend state<br>
to be "sick" instead of "healthy"?<br>
<br>
Thanks,<br><font color="#888888">
<br>
-- <br>
Cosimo<br>
<br>
_______________________________________________<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="http://lists.varnish-cache.org/mailman/listinfo/varnish-misc" target="_blank">http://lists.varnish-cache.org/mailman/listinfo/varnish-misc</a><br>
</font></blockquote></div><br>