Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
varnish-cache
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
varnishcache
varnish-cache
Commits
284c933d
Commit
284c933d
authored
May 13, 2014
by
Lasse Karstensen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add documentation for the fallback director.
parent
20d3ecae
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
9 deletions
+17
-9
vmod.vcc
lib/libvmod_directors/vmod.vcc
+17
-9
No files found.
lib/libvmod_directors/vmod.vcc
View file @
284c933d
...
...
@@ -59,8 +59,9 @@ Note that directors can use other directors as backends.
$Object round_robin()
Description
Create a round robin director. This director will pick backends
in a round robin fashion.
Create a round robin director.
This director will pick backends in a round robin fashion.
Example
new bar = directors.round_robin();
...
...
@@ -78,30 +79,37 @@ Description
Example
set req.backend_hint = rrdir.backend();
####################################################################
$Object fallback()
Description
Create
s
a fallback director.
Create a fallback director.
# XXX: Add description of fallback director.
A fallback director will try each of the added backends in turn,
and return the first one that is healthy.
Example
new
foo
= directors.fallback();
new
vdir
= directors.fallback();
$Method VOID .add_backend(BACKEND)
Description
Adds a backend to the director.
Add a backend to the director.
Note that the order in which this is done matters in the for the
fallback director.
Example
ba
r.add_backend(backend1);
vdi
r.add_backend(backend1);
$Method BACKEND .backend()
Description
Pick
s
a backend from the director.
Pick a backend from the director.
Example
set req.backend_hint =
rr
dir.backend();
set req.backend_hint =
v
dir.backend();
####################################################################
$Object random()
Description
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment