Backend server health check(hit even server is down)

AD straightflush at gmail.com
Mon Mar 12 02:52:10 CET 2012


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 <
jewel.nuruddin at eastbeam.co.jp> 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
> varnish-misc at varnish-cache.org
> https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20120311/162d86df/attachment-0001.html>


More information about the varnish-misc mailing list