Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
libvmod-weightadjust
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
uplex-varnish
libvmod-weightadjust
Commits
cf0a7cc3
Commit
cf0a7cc3
authored
Oct 05, 2017
by
Nils Goroll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rst fix
parent
fe5a286c
Pipeline
#309
skipped
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
vmod_weightadjust.vcc
src/vmod_weightadjust.vcc
+6
-3
No files found.
src/vmod_weightadjust.vcc
View file @
cf0a7cc3
...
@@ -21,7 +21,8 @@ Description
...
@@ -21,7 +21,8 @@ Description
The "testable" random generator in varnishd is used, which
The "testable" random generator in varnishd is used, which
enables deterministic tests to be run (See: d00004.vtc).
enables deterministic tests to be run (See: d00004.vtc).
Example
Example::
new vdir = directors.random();
new vdir = directors.random();
$Method VOID .add_backend(BACKEND backend, REAL weight,
$Method VOID .add_backend(BACKEND backend, REAL weight,
...
@@ -61,7 +62,8 @@ Description
...
@@ -61,7 +62,8 @@ Description
response (headers and body) to scan with the *weight_update*
response (headers and body) to scan with the *weight_update*
regular expression.
regular expression.
Example
Example::
vdir.add_backend(backend1, 10.0,
vdir.add_backend(backend1, 10.0,
"^X-Weight: *(\d+\.\d+)", "/get-weight.php")
"^X-Weight: *(\d+\.\d+)", "/get-weight.php")
vdir.add_backend(backend2, 2.0,
vdir.add_backend(backend2, 2.0,
...
@@ -71,7 +73,8 @@ $Method VOID .remove_backend(BACKEND backend)
...
@@ -71,7 +73,8 @@ $Method VOID .remove_backend(BACKEND backend)
Description
Description
Remove a backend from the director.
Remove a backend from the director.
Example
Example::
vdir.remove_backend(backend1);
vdir.remove_backend(backend1);
vdir.remove_backend(backend2);
vdir.remove_backend(backend2);
...
...
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