Wordpress updates timeout

Brent Clark brentgclarklist at gmail.com
Fri Mar 22 11:48:19 CET 2013


Good day.

I wonder if someone can please help me.

A client wordpress site is timing out when he does wordpress upgrades.

Wordpress sits on two backend apache web servers. And in front the 
Varnish server.
Varnish is making use of the load balancing facility.

To help trouble shoot, I have a very basic non caching config.

backend web1 { .host = "server1.host.com"; .probe = { .url = 
"/checker.html"; .interval = 5s; .timeout = 1s; .window = 5;.threshold = 
3; }
// we include time outs so uploads don't time out
  .connect_timeout = 600s;
  .first_byte_timeout = 600s;
  .between_bytes_timeout = 600s;
}
backend web2 { .host = "server2.host.com"; .probe = { .url = 
"/checker.html"; .interval = 5s; .timeout = 1s; .window = 5;.threshold = 
3; }
// we include time outs so uploads don't time out
  .connect_timeout = 600s;
  .first_byte_timeout = 600s;
  .between_bytes_timeout = 600s;
}

director default_director random {
   { .backend = web1; .weight = 1; }
   { .backend = web2; .weight = 1; }
}

sub vcl_recv {
    set req.backend = default_director;

   # Add a unique header containing the client address
   remove req.http.X-Forwarded-For;
   set    req.http.X-Forwarded-For = client.ip;
}

As you may see, Ive tried adding, the following to the backend directive.

  .connect_timeout = 600s;
  .first_byte_timeout = 600s;
  .between_bytes_timeout = 600s;

But the problem still persists.

If anyone can help or point me in the right direction, it would be 
appreciated.

Kind Regards
Brent Clark




More information about the varnish-misc mailing list