Example VCL for backend check

Alex Davies alex at davz.net
Thu Dec 11 18:21:40 CET 2008


Hi,

I'm trying to setup varnish in a fairly simple situation - I have a
box with 15G of RAM and 15G of disk space. I want Varnish to use the
lot. I've got 4 backend webservers, and I want varnish to test them
all and ensure that they return a 200 code. However, i'm really
struggling with the VCL examples - is there a reference that a
non-programmer such as I can use?

I'm figuring that I need something like

# web1
backend default {
  .host = "xxx.xxx";
  .port = "80";
    .probe = {
    .url = "/";
    .timeout = 34 ms;
    .interval = 1s;
    .window = 10;
    .threshold = 8;
  }
}

# web2
backend default {
  .host = "xxx.xxx";
  .port = "80";
    .probe = {
    .url = "/";
    .timeout = 34 ms;
    .interval = 1s;
    .window = 10;
    .threshold = 8;
  }
}

And then something to glue all the backends together, but I see many
different options in the manuals! I'd appreciate a pointer in the
right direction if anyone could spare one. The vcl man page isnt
entirely obvious to me!

Many thanks,

Alex

-- 
Alex Davies

This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the sender immediately by e-mail and delete this e-mail permanently.



More information about the varnish-misc mailing list