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
0c30fedf
Unverified
Commit
0c30fedf
authored
Jul 06, 2020
by
Nils Goroll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shard director: explain how the ring is constructed with weights
parent
9426f4a4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
vmod_directors.vcc
lib/libvmod_directors/vmod_directors.vcc
+4
-1
No files found.
lib/libvmod_directors/vmod_directors.vcc
View file @
0c30fedf
...
...
@@ -319,7 +319,10 @@ hashing circular data structure gets built from the last 32 bits of
SHA256 hash values of *<ident>*\ *<n>* (default *ident* being the
backend name) for each backend and for a running number *n* from 1 to
*replicas*. Hashing creates the seemingly random order for placement
of backends on the consistent hashing ring.
of backends on the consistent hashing ring. When
`xshard.add_backend()`_ was called with a *weight* argument,
*replicas* is scaled by that weight to add proportionally more copies
of the that backend on the ring.
When `xshard.backend()`_ is called, a load balancing key
gets generated unless provided. The smallest hash value in the circle
...
...
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