Consistent hashing to a subset of nodes. It works like consistent hash,
but instead of mapping to a single node, we map to a subset of nodes.
This commit is contained in:
parent
29118750be
commit
60b983503b
17 changed files with 434 additions and 17 deletions
|
|
@ -113,6 +113,14 @@ type Backend struct {
|
|||
// http://nginx.org/en/docs/http/ngx_http_upstream_module.html#hash
|
||||
UpstreamHashBy string `json:"upstream-hash-by"`
|
||||
|
||||
// Consistent hashing subset flag.
|
||||
// Default: false
|
||||
UpstreamHashBySubset bool `json:"upstream-hash-by-subset"`
|
||||
|
||||
// Subset consistent hashing, subset size.
|
||||
// Default 3
|
||||
UpstreamHashBySubsetSize int `json:"upstream-hash-by-subset-size"`
|
||||
|
||||
// Let's us choose a load balancing algorithm per ingress
|
||||
LoadBalancing string `json:"load-balance"`
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue