varnish forward to wrong backend

Lei Wang leiwang at rhapsody.com
Thu Aug 15 20:09:13 CEST 2013


I have varnish 3 (varnish-3.0.4 revision 9f83e8f) installed to cache
multi-site in one configuration. Sometimes Varnish switched to use the
first backend in the configuration for all the requests to the other sites.
As in the sample configuration below, the request to backend2, backend3,
backend4 sometimes forwarded to backend1. Does anyone have the same problem
or know any solution, suggestion?

The varnish backend configuration is quite simple like below:

backend backend1 {
  .host = "backend1.myserver.com";
  .port = "80";
  .connect_timeout = 20s;
  .first_byte_timeout = 60s;
  .between_bytes_timeout = 60s;
}

backend backend2 {
  .host = "backend2.myserver.com";
  .port = "80";
  .connect_timeout = 20s;
  .first_byte_timeout = 60s;
  .between_bytes_timeout = 60s;
}

backend backend3 {
  .host = "backend3.myserver.com";
  .port = "80";
  .connect_timeout = 20s;
  .first_byte_timeout = 60s;
  .between_bytes_timeout = 60s;
}

backend backend4 {
  .host = "backend4.myserver.com";
  .port = "80";
  .connect_timeout = 20s;
  .first_byte_timeout = 60s;
  .between_bytes_timeout = 60s;
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20130815/c2fd4577/attachment.html>


More information about the varnish-misc mailing list