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
80a44322
Commit
80a44322
authored
Mar 13, 2014
by
Tollef Fog Heen
Committed by
Tollef Fog Heen
Mar 13, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Language, typos, XXX rather than asdasoidwqjwqdasdas
parent
c18e940b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
vmod.vcc
lib/libvmod_directors/vmod.vcc
+8
-5
No files found.
lib/libvmod_directors/vmod.vcc
View file @
80a44322
...
...
@@ -30,8 +30,8 @@ $Module directors 3 Backend traffic directors
DESCRIPTION
===========
Vmod_direcors enables load balancing in Varnish. The module serves
as an example on how one could extend the load balancing capabilites
Vmod_direc
t
ors enables load balancing in Varnish. The module serves
as an example on how one could extend the load balancing capabilit
i
es
of Varnish.
To enable load balancing you must import this vmod (directors) in your
...
...
@@ -41,7 +41,7 @@ VCL:::
Then you define your backends. Once you have the backends declared you
can add them to a director. This happens in executed VCL code. If you
want to emulate the previous behavio
u
r of Varnish 3.0 you can just
want to emulate the previous behavior of Varnish 3.0 you can just
initialize the directors in vcl_init, like this:::
sub vcl_init {
...
...
@@ -52,7 +52,7 @@ initialize the directors in vcl_init, like this:::
As you can see there is nothing keeping you from manipulating the
directors elsewhere in VCL. So, you could have VCL code that would
add more backends to a director when a certin URL is called.
add more backends to a director when a cert
a
in URL is called.
$Object round_robin()
...
...
@@ -79,7 +79,10 @@ Example
$Object fallback()
Description
Creates a fallback director. This director will asdasoidwqjwqdasdas
Creates a fallback director. This director will
XXX: Add description of fallback director.
Example
new foo = directors.fallback();
...
...
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