Update pkg/apis/policy/v1alpha1/replicascheduling_types.go

Signed-off-by: Kevin Wang <kevinwzf0126@gmail.com>
This commit is contained in:
Kevin Wang 2021-10-29 12:49:12 +08:00 committed by GitHub
parent 079778ed87
commit 2b79b31131
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 15 deletions

View File

@ -62,21 +62,16 @@ type DynamicWeightFactor string
const (
// DynamicWeightByAvailableReplicas represents the cluster weight list should be generated according to
// available resource(available replicas). e.g.
// The scheduler has selected 3 clusters(A/B/C) and should divide 12 replicas to them.
//
// Workload:
// Desired replica: 12
//
// Cluster:
// A:
// Max available replica: 6
// B:
// Max available replica: 12
// C:
// Max available replica: 18
//
// The weight of cluster A:B:C will be 6:12:18(equals to 1:2:3). At last, the assignment would be 'A: 2, B: 4, C: 6'.
// available resource (available replicas).
// Example:
// The scheduler selected 3 clusters (A/B/C) and should divide 12 replicas to them.
// Workload:
// Desired replica: 12
// Cluster:
// A: Max available replica: 6
// B: Max available replica: 12
// C: Max available replica: 18
// The weight of cluster A:B:C will be 6:12:18 (equals to 1:2:3). At last, the assignment would be 'A: 2, B: 4, C: 6'.
DynamicWeightByAvailableReplicas DynamicWeightFactor = "AvailableReplicas"
)