[Coscheduling] CalculateAssignedPods cost too much time
KunWuLuan opened this issue · comments
PodGroup manager will try every node and every pod in CalculateAssignedPods()
scheduler-plugins/pkg/coscheduling/core/core.go
Lines 246 to 264 in cd3e4fb
When there are 5k or more nodes and 50000+ pods in cluster, CalculateAssignedPods() will cost 30+ms.
We should cache the number of assigned pods to save time in scheduling cycle.
/assign