From 4d1db69bcc91cabb5f217154688cdb136c2665de Mon Sep 17 00:00:00 2001 From: jdrahos Date: Tue, 24 Sep 2019 18:15:31 -0400 Subject: [PATCH] weighted scheduling methods constants for ipvs Signed-off-by: Jakub Drahos --- libnetwork/ipvs/constants.go | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/libnetwork/ipvs/constants.go b/libnetwork/ipvs/constants.go index b6b7f2bb5e..efac4e367c 100644 --- a/libnetwork/ipvs/constants.go +++ b/libnetwork/ipvs/constants.go @@ -144,6 +144,17 @@ const ( // a statically assigned hash table by their source IP // addresses. 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 (