mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-28 05:57:25 +00:00
Merge pull request #55215 from xiangpengzhao/fix-kubeproxy-doc-lint
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. Fix lint errors in kubeproxyconfig types. **What this PR does / why we need it**: Fix some outstanding lint errors reported by k8s-ci-robot in https://github.com/kubernetes/kubernetes/pull/53645/files#r149212051. **Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*: Fixes #53645 **Special notes for your reviewer**: /cc @cblecker @ncdc **Release note**: ```release-note NONE ```
This commit is contained in:
commit
6e01976be1
@ -171,7 +171,7 @@ const (
|
|||||||
type IPVSSchedulerMethod string
|
type IPVSSchedulerMethod string
|
||||||
|
|
||||||
const (
|
const (
|
||||||
// Robin Robin distributes jobs equally amongst the available real servers.
|
// RoundRobin distributes jobs equally amongst the available real servers.
|
||||||
RoundRobin IPVSSchedulerMethod = "rr"
|
RoundRobin IPVSSchedulerMethod = "rr"
|
||||||
// WeightedRoundRobin assigns jobs to real servers proportionally to there real servers' weight.
|
// 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 higher weights receive new jobs first and get more jobs than servers with lower weights.
|
||||||
@ -180,15 +180,15 @@ const (
|
|||||||
// LeastConnection assigns more jobs to real servers with fewer active jobs.
|
// LeastConnection assigns more jobs to real servers with fewer active jobs.
|
||||||
LeastConnection IPVSSchedulerMethod = "lc"
|
LeastConnection IPVSSchedulerMethod = "lc"
|
||||||
// WeightedLeastConnection assigns more jobs to servers with fewer jobs and
|
// WeightedLeastConnection assigns more jobs to servers with fewer jobs and
|
||||||
// relative to the real servers’weight(Ci/Wi).
|
// relative to the real servers' weight(Ci/Wi).
|
||||||
WeightedLeastConnection IPVSSchedulerMethod = "wlc"
|
WeightedLeastConnection IPVSSchedulerMethod = "wlc"
|
||||||
// LocalityBasedLeastConnection assigns jobs destined for the same IP address to the same server if
|
// LocalityBasedLeastConnection 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,
|
// the server is not overloaded and available; otherwise assigns jobs to servers with fewer jobs,
|
||||||
// and keep it for future assignment.
|
// and keep it for future assignment.
|
||||||
LocalityBasedLeastConnection IPVSSchedulerMethod = "lblc"
|
LocalityBasedLeastConnection IPVSSchedulerMethod = "lblc"
|
||||||
// Locality Based Least Connection with Replication assigns jobs destined for the same IP address to the
|
// LocalityBasedLeastConnectionWithReplication 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 overloaded,
|
// least-connection node in the server set for the IP address. If all the node in the server set are overloaded,
|
||||||
// it picks up a node with fewer jobs in the cluster and adds it in the sever set for the target.
|
// 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,
|
// 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.
|
// in order to avoid high degree of replication.
|
||||||
LocalityBasedLeastConnectionWithReplication IPVSSchedulerMethod = "lblcr"
|
LocalityBasedLeastConnectionWithReplication IPVSSchedulerMethod = "lblcr"
|
||||||
|
Loading…
Reference in New Issue
Block a user