Commit 69d62a92 authored by Bobby (Babak) Salamat's avatar Bobby (Babak) Salamat

Improve performance of scheduling queue by adding a hash map to track all pods…

Improve performance of scheduling queue by adding a hash map to track all pods in with a nominatedNodeName.
parent 76e6da25
...@@ -591,7 +591,7 @@ func (c *configFactory) updatePodInSchedulingQueue(oldObj, newObj interface{}) { ...@@ -591,7 +591,7 @@ func (c *configFactory) updatePodInSchedulingQueue(oldObj, newObj interface{}) {
if c.skipPodUpdate(pod) { if c.skipPodUpdate(pod) {
return return
} }
if err := c.podQueue.Update(pod); err != nil { if err := c.podQueue.Update(oldObj.(*v1.Pod), pod); err != nil {
runtime.HandleError(fmt.Errorf("unable to update %T: %v", newObj, err)) runtime.HandleError(fmt.Errorf("unable to update %T: %v", newObj, err))
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment