Update pkg/apis/policy/v1alpha1/replicascheduling_types.go
Signed-off-by: Kevin Wang <kevinwzf0126@gmail.com>
This commit is contained in:
parent
079778ed87
commit
2b79b31131
|
@ -62,21 +62,16 @@ type DynamicWeightFactor string
|
||||||
|
|
||||||
const (
|
const (
|
||||||
// DynamicWeightByAvailableReplicas represents the cluster weight list should be generated according to
|
// DynamicWeightByAvailableReplicas represents the cluster weight list should be generated according to
|
||||||
// available resource(available replicas). e.g.
|
// available resource (available replicas).
|
||||||
// The scheduler has selected 3 clusters(A/B/C) and should divide 12 replicas to them.
|
// Example:
|
||||||
//
|
// The scheduler selected 3 clusters (A/B/C) and should divide 12 replicas to them.
|
||||||
// Workload:
|
// Workload:
|
||||||
// Desired replica: 12
|
// Desired replica: 12
|
||||||
//
|
// Cluster:
|
||||||
// Cluster:
|
// A: Max available replica: 6
|
||||||
// A:
|
// B: Max available replica: 12
|
||||||
// Max available replica: 6
|
// C: Max available replica: 18
|
||||||
// B:
|
// 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'.
|
||||||
// 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"
|
DynamicWeightByAvailableReplicas DynamicWeightFactor = "AvailableReplicas"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue