-
Notifications
You must be signed in to change notification settings - Fork 978
Open
Labels
kind/featureCategorizes issue or PR as related to a new feature.Categorizes issue or PR as related to a new feature.
Milestone
Description
When karmada-scheduler schedules the rb object for the first time, it would respectively calculate the number of available replicas in the subcluster in the Select
phase and the AssignReplica
phase. The picture below records metric of karmada_scheduler_scheduling_algorithm_duration_seconds_bucket.
there could be optimized to once calculate, The result calculated in the Select
phase could be directly repeated in the AssignReplica
phase. In order to improve the qps of the karmada-scheduler
[](
karmada/pkg/scheduler/core/generic_scheduler.go
Lines 97 to 107 in d4c5890
clusters, err := g.selectClusters(clustersScore, spec.Placement, spec) | |
if err != nil { | |
return result, fmt.Errorf("failed to select clusters: %w", err) | |
} | |
klog.V(4).Infof("Selected clusters: %v", clusters) | |
clustersWithReplicas, err := g.assignReplicas(clusters, spec, status) | |
if err != nil { | |
return result, fmt.Errorf("failed to assign replicas: %w", err) | |
} | |
klog.V(4).Infof("Assigned Replicas: %v", clustersWithReplicas) |
Metadata
Metadata
Assignees
Labels
kind/featureCategorizes issue or PR as related to a new feature.Categorizes issue or PR as related to a new feature.
Type
Projects
Status
No status