[Varnish] #512: 503 error with load-balancer setup
Varnish
varnish-bugs at projects.linpro.no
Tue May 26 18:28:58 CEST 2009
#512: 503 error with load-balancer setup
----------------------+-----------------------------------------------------
Reporter: ajung | Owner: phk
Type: defect | Status: new
Priority: high | Milestone:
Component: varnishd | Version: trunk
Severity: major | Keywords: Loadbalancer
----------------------+-----------------------------------------------------
Running Varnish 2.0.4 on latest Debian.
I tried setting up Varnish as a load-balancer with the following
configuration.
Load-balancing works with both .probe options disabled. It also work with
one .probe
option enabled. Varnish fails (replies with a 503 error) as soon as both
backend are configured for probing. In fact the probing is working (I can
see the requests
on the backends (returning with status 200). So what's the heck here?
backend labor1 {
.host = "diaweb07";
.port = "11001";
# .probe = {
# .url = "/";
# .interval = 5s;
# .timeout = 1 s;
# .window = 5;
# .threshold = 3;
# }
}
backend labor2 {
.host = "diaweb07";
.port = "11002";
# .probe = {
# .url = "/";
# .interval = 5s;
# .timeout = 1 s;
# .window = 5;
# .threshold = 3;
# }
}
director laborbalancer round-robin {
{
.backend = labor1;
}
{
.backend = labor2;
}
}
acl purge {
"172.25.4.232";
}
sub vcl_recv {
set req.backend = laborbalancer;
--
Ticket URL: <http://varnish.projects.linpro.no/ticket/512>
Varnish <http://varnish.projects.linpro.no/>
The Varnish HTTP Accelerator
More information about the varnish-bugs
mailing list