Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Varnish: Dist

Backend health right after launch

 

 

Varnish dist RSS feed   Index | Next | Previous | View Threaded


me at mgoldman

May 29, 2009, 10:03 AM

Post #1 of 1 (1191 views)
Permalink
Backend health right after launch

Hello all,

I'm trying varnish for the first time, and I've noticed that for the first
several minutes after starting the service, every request 503s out. After
that, requests start working. I'm guessing this is because I'm doing backend
polling with a config like this:

backend web1 {
.host = "server1";
.port = "80";
.probe = {
.url = "/ping.php";
.interval = 1 m;
.timeout = 2 s;
* .window = 5;
.threshold = 3;
* }

With this config, a backend isn't considered healthy unless it passes the
health check 3 times. Since I'm only doing the check once per minute, it
takes 3 minutes for the backends to become healthy.

I think the "3 out of 5" check is a good one to have during normal server
operations, but I'd prefer if it didn't apply right after startup, since the
service is then guaranteed to be unavailable for several minutes despite
probably being healthy. I understand why it works this way, but I'm just
curious, is there a way around this?

Many thanks,
Martin Goldman
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://projects.linpro.no/pipermail/varnish-dist/attachments/20090529/a4c03ab2/attachment.htm

Varnish dist RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.