Looks like you are missing healthchecks

backend server1 {
  .host = "server1.example.com";
  .probe = {
         .url = "/";
         .interval = 5s;
         .timeout = 1 s;
         .window = 5;
         .threshold = 3;
    }
  }


On Sun, Mar 11, 2012 at 9:41 PM, Jewel Nuruddin <
[email protected]> wrote:

> Hello
> I use varnish 3.0.2 and I have tow backend web server by round-robin.
> I found that my current configuration hit the backend if the backend
> server is down.
> I want varnish will not look for backend if the backed is down.
> Can some one please help me.
>
> My current configuration is bellow.
>
> backend web01 {
>   .host = "10.70.18.10";
>   .port = "8080";
> }
>
> backend web02 {
>   .host = "10.70.18.11";
>   .port = "8080";
> }
>
> director web round-robin {
>         {
>                 .backend = web01;
>         }
>         {
>                 .backend = web02;
>         }
> }
>
> sub vcl_recv {
>            set req.backend = web;
>            }
>
>
>
>
>
> _______________________________________________
> varnish-misc mailing list
> [email protected]
> https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc
>
_______________________________________________
varnish-misc mailing list
[email protected]
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc

Reply via email to