]> err.no Git - varnish/commit
Added a round robin director. The round robin director can be created like this:
authorpetter <petter@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Mon, 14 Jul 2008 12:59:10 +0000 (12:59 +0000)
committerpetter <petter@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Mon, 14 Jul 2008 12:59:10 +0000 (12:59 +0000)
commit098ae9ee5d0795995a086e3487c6e502dc73f8df
treea3bbe64c44c6e993092d7525b4f58d6ea4dd28a0
parentd9828bc00ffcddba341d7d7252d0d423ba2f7f01
Added a round robin director. The round robin director can be created like this:

director batman round-robin {
{ .backend = b1; }
{ .backend = b2; }
{ .backend = b3; }
}

sub vcl_recv {
set req.backend = batman;
}

The backend will then be chosen in a round robin fashion.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2943 d4fa192b-c00b-0410-8231-f00ffab90ce4
varnish-cache/bin/varnishd/Makefile.am
varnish-cache/bin/varnishd/cache_dir_round_robin.c [new file with mode: 0644]
varnish-cache/bin/varnishtest/tests/v00009.vtc [new file with mode: 0644]
varnish-cache/include/vrt.h
varnish-cache/lib/libvcl/Makefile.am
varnish-cache/lib/libvcl/vcc_backend.c
varnish-cache/lib/libvcl/vcc_compile.h
varnish-cache/lib/libvcl/vcc_dir_round_robin.c [new file with mode: 0644]
varnish-cache/lib/libvcl/vcc_fixed_token.c