From 2b79b311317615afe4290e5d4c20b1001495d810 Mon Sep 17 00:00:00 2001 From: Kevin Wang Date: Fri, 29 Oct 2021 12:49:12 +0800 Subject: [PATCH] Update pkg/apis/policy/v1alpha1/replicascheduling_types.go Signed-off-by: Kevin Wang --- .../v1alpha1/replicascheduling_types.go | 25 ++++++++----------- 1 file changed, 10 insertions(+), 15 deletions(-) diff --git a/pkg/apis/policy/v1alpha1/replicascheduling_types.go b/pkg/apis/policy/v1alpha1/replicascheduling_types.go index f7cd49e2b..164af0e4c 100644 --- a/pkg/apis/policy/v1alpha1/replicascheduling_types.go +++ b/pkg/apis/policy/v1alpha1/replicascheduling_types.go @@ -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" )