Benjamin Teke created YARN-12012:
------------------------------------

             Summary: Collect Capacity Scheduler application ordering policy 
parameters without copying the configuration
                 Key: YARN-12012
                 URL: https://issues.apache.org/jira/browse/YARN-12012
             Project: Hadoop YARN
          Issue Type: Sub-task
          Components: capacity scheduler
            Reporter: Benjamin Teke
            Assignee: Benjamin Teke


CapacitySchedulerConfiguration.getAppOrderingPolicy iterates the whole 
configuration once per leaf queue through Configuration.iterator(), which 
copies every property into a new map, so building Q leaf queues copies the N 
properties Q times.

Collect the parameters from the properties directly, under their lock, with the 
same filter Configuration.iterator() applies, so each policy receives the same 
map.

At 1,000 queues it makes load about 26% and refresh about 29% faster in local 
benchmarks.




--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to