varnish redundancy

Tollef Fog Heen tfheen at redpill-linpro.com
Thu Oct 8 09:49:26 CEST 2009


]] Laurence Rowe 

| Is there an advantage in using a director here instead of the following?
| 
| sub vcl_recv {
|     set req.backend = haproxy01;
|     if (!req.backend.healthy) {
|         set req.backend = haproxy02;
|     }

If haproxy01 is marked as healthy, but refuses the connection for
whatever reason, you'll end up in vcl_error here.  A director will give
you a connection to the other one.

-- 
Tollef Fog Heen 
Redpill Linpro -- Changing the game!
t: +47 21 54 41 73



More information about the varnish-misc mailing list