Questiona about req.backend.healthy

Rangel, Raul Raul.Rangel at disney.com
Wed Jun 12 16:15:11 CEST 2013


req.backend is the default backend you have selected. If you want your request to go to a specific backend just
set req.backend = be1;

You can reference each individual backend by name. So be1.healthy, or be2.healthy.

Raul

-----Original Message-----
From: varnish-misc-bounces+raul.rangel=disney.com at varnish-cache.org [mailto:varnish-misc-bounces+raul.rangel=disney.com at varnish-cache.org] On Behalf Of Marco Felettigh
Sent: Wednesday, June 12, 2013 6:49 AM
To: varnish-misc at varnish-cache.org
Subject: Questiona about req.backend.healthy

Hi ,
i'am new about Varnish and i need help understanding req.backend.healthy .

req.backend.healthy is a state for all the backends or i can check the healthy of a single backend ?
How can i grace only the content from a single backend ?

site1 -> be1
site2 -> be2

example:
backend be1 {
   .host = "x.x.x.x";
   .port = "80";
   .probe = {
   .url = "/index.php";
   .interval = 5s;
   .timeout = 1 s;
   .window = 5;
   .threshold = 3;
  }
}

backend be2 {
   .host = "y.y.y.y";
   .port = "80";
   .probe = {
   .url = "/index.php";
   .interval = 5s;
   .timeout = 1 s;
   .window = 5;
   .threshold = 3;
  }
}


thanks
Marco



More information about the varnish-misc mailing list