mirror of
https://github.com/outbackdingo/kubernetes.git
synced 2026-01-28 02:19:27 +00:00
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. Improve performance of scheduling queue by adding a hash map to track all pods with a nominatedNodeName **What this PR does / why we need it**: Our investigations show that there is a performance regression in the new scheduling queue which is not enabled by default and is enabled only if "priority and preemption" which is an alpha feature is enabled. This PR is an important performance improvement for those who want to use priority and preemption in larger clusters. The PR adds a hash table to track nominated Pods so that finding such Pods will be faster. Other than improving performance, we don't expect this PR to change behavior of scheduler. **Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*: Fixes # ref/ #56032 ref/ #57471 **Special notes for your reviewer**: **Release note**: ```release-note NONE ``` /sig scheduling