• Kubernetes Submit Queue's avatar
    Merge pull request #37691 from dshulyak/term_selector · f2f10712
    Kubernetes Submit Queue authored
    Automatic merge from submit-queue (batch tested with PRs 38377, 36365, 36648, 37691, 38339)
    
    Do not create selector and namespaces in a loop where possible
    
    With 1000 nodes and 5000 pods (5 pods per node) with anti-affinity a lot of CPU wasted on creating LabelSelector and sets.String (map). 
    
    With this change we are able to deploy that number of pods in ~25 minutes. Without - it takes 30 minutes to deploy 500 pods with anti-affinity configured.
    f2f10712
Name
Last commit
Last update
..
algorithm Loading commit data...
algorithmprovider Loading commit data...
api Loading commit data...
factory Loading commit data...
metrics Loading commit data...
schedulercache Loading commit data...
testing Loading commit data...
BUILD Loading commit data...
OWNERS Loading commit data...
equivalence_cache.go Loading commit data...
extender.go Loading commit data...
extender_test.go Loading commit data...
generic_scheduler.go Loading commit data...
generic_scheduler_test.go Loading commit data...
scheduler.go Loading commit data...
scheduler_test.go Loading commit data...