Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions ipvs/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down
2 changes: 2 additions & 0 deletions ipvs/ipvs_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ var (
LeastConnection,
DestinationHashing,
SourceHashing,
WeightedLeastConnection,
WeightedRoundRobin,
}

protocols = []string{
Expand Down