Open LivingCcj opened 3 months ago
Since the time interval between the selectClusters
step and assignReplicas
step is only 20 milliseconds, it does seem unnecessary to calculate availableReplicas
twice. So, I also think that the second calculation can be omitted.
Hi @Garrybest ,what is your opinion?
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 theAssignReplica
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 theAssignReplica
phase. In order to improve the qps of the karmada-scheduler [](url)