[ 
https://issues.apache.org/jira/browse/YARN-9894?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16993925#comment-16993925
 ] 

Eric Payne commented on YARN-9894:
----------------------------------

Thanks a lot, [~jhung] for your review comments. Sorry for the long delay.
{quote}can we change this to: Integer.getInteger("NumberOfQueues", 40);, etc.?
{quote}
Done. Good suggestion.
{quote}it seems there's quite a bit of duplicate code, any chance we can 
refactor it?
{quote}
I combined the driver method 
{{testUserLimitThroughputWithNumberOfResourceTypes}} with the code that I had 
originally put into the new test {{testUserLimitThroughputWithManyQueues}}
 —
 Also, since these are performance tests, when run together they can take a 
long time (for me ~20 minutes). They kept hitting the surefire.fork.timeout:
{panel:title=hadoop-project/pom.xml}
<surefire.fork.timeout>900</surefire.fork.timeout>
{panel}
So, I added the following switch to the command line in order to get all the 
way through all of the test cases:
{noformat}
-Dsurefire.fork.timeout=1800
{noformat}

> CapacitySchedulerPerf test for measuring hundreds of apps in a large number 
> of queues.
> --------------------------------------------------------------------------------------
>
>                 Key: YARN-9894
>                 URL: https://issues.apache.org/jira/browse/YARN-9894
>             Project: Hadoop YARN
>          Issue Type: Improvement
>          Components: capacity scheduler, test
>    Affects Versions: 2.9.2, 2.8.5, 3.2.1, 3.1.3
>            Reporter: Eric Payne
>            Assignee: Eric Payne
>            Priority: Major
>         Attachments: YARN-9894.001.patch, YARN-9894.002.patch
>
>
> I have developed a unit test based on the existing TestCapacitySchedulerPerf 
> tests that will measure the performance of a configurable number of apps in a 
> configurable number of queues. It will also test the performance of a cluster 
> that has many queues but only a portion of them are active.
> {code:title=For example:}
> $ mvn test 
> -Dtest=TestCapacitySchedulerPerf#testUserLimitThroughputWithManyQueues \
>   -DRunCapacitySchedulerPerfTests=true
>   -DNumberOfQueues=100 \
>   -DNumberOfApplications=200 \
>   -DPercentActiveQueues=100
> {code}
> - Parameters:
> -- RunCapacitySchedulerPerfTests=true:
> Needed in order to trigger the test
> -- NumberOfQueues
> Configurable number of queues
> -- NumberOfApplications
> Total number of apps to run in the whole cluster, distributed evenly across 
> all queues
> -- PercentActiveQueues
> Percentage of the queues that contain active applications



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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

Reply via email to