Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
c14c9331
Commit
c14c9331
authored
Nov 07, 2017
by
xiangpengzhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix lint errors in kubeproxyconfig types.
parent
2bb6c83d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
16 deletions
+16
-16
types.go
pkg/proxy/apis/kubeproxyconfig/types.go
+16
-16
No files found.
pkg/proxy/apis/kubeproxyconfig/types.go
View file @
c14c9331
...
...
@@ -171,39 +171,39 @@ const (
type
IPVSSchedulerMethod
string
const
(
// Ro
bin
Robin distributes jobs equally amongst the available real servers.
// Ro
und
Robin distributes jobs equally amongst the available real servers.
RoundRobin
IPVSSchedulerMethod
=
"rr"
// Weighted
Round Robin 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.
// Weighted
RoundRobin 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
IPVSSchedulerMethod
=
"wrr"
// Least
Connection assigns more jobs to real servers with fewer active jobs.
// LeastConnection assigns more jobs to real servers with fewer active jobs.
LeastConnection
IPVSSchedulerMethod
=
"lc"
// Weighted
Least
Connection assigns more jobs to servers with fewer jobs and
// relative to the real servers
’
weight(Ci/Wi).
// Weighted
Least
Connection assigns more jobs to servers with fewer jobs and
// relative to the real servers
'
weight(Ci/Wi).
WeightedLeastConnection
IPVSSchedulerMethod
=
"wlc"
// Locality
Based Least
Connection assigns jobs destined for the same IP address to the same server if
// the server is not overloaded and available; otherwise assign jobs to servers with fewer jobs,
// Locality
BasedLeast
Connection assigns jobs destined for the same IP address to the same server if
// the server is not overloaded and available; otherwise assign
s
jobs to servers with fewer jobs,
// and keep it for future assignment.
LocalityBasedLeastConnection
IPVSSchedulerMethod
=
"lblc"
// Locality
Based Least Connec
tion with Replication assigns jobs destined for the same IP address to the
// least-connection node in the server set for the IP address.
If all the node in the server set are over
loaded,
// it picks up a node with fewer jobs in the cluster and adds it
in
the sever set for the target.
// Locality
BasedLeastConnectionWithReplica
tion with Replication assigns jobs destined for the same IP address to the
// least-connection node in the server set for the IP address.
If all the node in the server set are over
loaded,
// it picks up a node with fewer jobs in the cluster and adds it
to
the sever set for the target.
// If the server set has not been modified for the specified time, the most loaded node is removed from the server set,
// in order to avoid high degree of replication.
LocalityBasedLeastConnectionWithReplication
IPVSSchedulerMethod
=
"lblcr"
// Source
Hashing assigns jobs to servers through looking up a statically assigned hash table
// SourceHashing assigns jobs to servers through looking up a statically assigned hash table
// by their source IP addresses.
SourceHashing
IPVSSchedulerMethod
=
"sh"
// Destination
Hashing assigns jobs to servers through looking up a statically assigned hash table
// DestinationHashing assigns jobs to servers through looking up a statically assigned hash table
// by their destination IP addresses.
DestinationHashing
IPVSSchedulerMethod
=
"dh"
// Shortest
Expected
Delay assigns an incoming job to the server with the shortest expected delay.
// Shortest
Expected
Delay assigns an incoming job to the server with the shortest expected delay.
// The expected delay that the job will experience is (Ci + 1) / Ui if sent to the ith server, in which
// Ci is the number of jobs on the the ith server and Ui is the fixed service rate (weight) of the ith server.
ShortestExpectedDelay
IPVSSchedulerMethod
=
"sed"
// Never
Queue assigns an incoming job to an idle server if there is, instead of waiting for a fast one;
// if all the servers are busy, it adopts the Shortest
Expected
Delay policy to assign the job.
// NeverQueue assigns an incoming job to an idle server if there is, instead of waiting for a fast one;
// if all the servers are busy, it adopts the Shortest
Expected
Delay policy to assign the job.
NeverQueue
IPVSSchedulerMethod
=
"nq"
)
...
...
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