[master] f8c6b70 Document weight on the hash director
Lasse Karstensen
lkarsten at varnish-software.com
Tue Mar 25 17:54:36 CET 2014
commit f8c6b70e4edeed99d25f8c17521ebbb1981746af
Author: Lasse Karstensen <lkarsten at varnish-software.com>
Date: Tue Mar 25 17:54:09 2014 +0100
Document weight on the hash director
diff --git a/lib/libvmod_directors/vmod.vcc b/lib/libvmod_directors/vmod.vcc
index 24e8839..3b21dc5 100644
--- a/lib/libvmod_directors/vmod.vcc
+++ b/lib/libvmod_directors/vmod.vcc
@@ -141,9 +141,13 @@ Example
$Method VOID .add_backend(BACKEND, REAL)
Description
- Adds a backend to the director.
+ Adds a backend to the director with a certain weight.
+
+ Weight is used as in the round_robin director. Recommended value is
+ 1.0 unless you have special needs.
+
Example
- hdir.add_backend(backend1);
+ hdir.add_backend(backend1, 1.0);
$Method BACKEND .backend(STRING_LIST)
More information about the varnish-commit
mailing list