Merge pull request #2453 from jdrahos/ipvs_weighted_scheduling_constants-2452

weighted scheduling methods constants for ipvs
This commit is contained in:
elangovan sivanandam 2019-09-28 18:19:02 -04:00 committed by GitHub
commit 33e9208a19
2 changed files with 13 additions and 0 deletions

View file

@ -144,6 +144,17 @@ const (
// a statically assigned hash table by their source IP // a statically assigned hash table by their source IP
// addresses. // addresses.
SourceHashing = "sh" SourceHashing = "sh"
// WeightedRoundRobin assigns jobs to real servers proportionally
// to there real servers' weight. Servers with higher weights
// receive new jobs first and get more jobs than servers
// with lower weights. Servers with equal weights get
// an equal distribution of new jobs
WeightedRoundRobin = "wrr"
// WeightedLeastConnection assigns more jobs to servers
// with fewer jobs and relative to the real servers' weight
WeightedLeastConnection = "wlc"
) )
const ( const (

View file

@ -21,6 +21,8 @@ var (
LeastConnection, LeastConnection,
DestinationHashing, DestinationHashing,
SourceHashing, SourceHashing,
WeightedLeastConnection,
WeightedRoundRobin,
} }
protocols = []string{ protocols = []string{