[
https://issues.apache.org/jira/browse/YARN-10559?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17276904#comment-17276904
]
VADAGA ANANYO RAO edited comment on YARN-10559 at 2/5/21, 2:29 PM:
-------------------------------------------------------------------
Hi [~epayne], thank you for your earlier response. We wanted to get your
suggestions on better handling multiple user cases. Currently, we are
considering a formula to calculate FairShare per app like:
{code:java}
foreach user:
if(tq.leafqueue.getUserLimit == 100)
fairSharePerApp = total Queue Capacity / # of apps of that user;
else
fairSharePerApp = UL / # of apps of that user;
{code}
So, according to the above formula, Say we have a scenario with 2 users and
UserLimit = 100%,
User1 (UL = 100%, fairSharePerUser = 50%)
* App1 (fairSharePerApp = 50%)
User2 (UL = 100%, fairSharePerUser = 50%)
* App2 (fairSharePerApp = 25%)
* App3 (fairSharePerApp = 25%)
Do you see any shortcomings in this formula or can suggest better ways of
handling multiple user issue? I would really appreciate it :)
cc: [~sunilg] [~wangda]
was (Author: ananyo_rao):
Hi [~epayne], thank you for your earlier response. We wanted to get your
suggestions on better handling multiple user cases. Currently, we are
considering a formula to calculate FairShare per app like:
{code:java}
fairSharePerUser = total Queue Capacity / # of users
foreach user:
if(tq.leafqueue.getUserLimit == 100)
fairSharePerApp = fairSharePerUser / # of apps of that user;
else
fairSharePerApp = UL / # of apps of that user;
{code}
So, according to the above formula, Say we have a scenario with 2 users and
UserLimit = 100%,
User1 (UL = 100%, fairSharePerUser = 50%)
* App1 (fairSharePerApp = 50%)
User2 (UL = 100%, fairSharePerUser = 50%)
* App2 (fairSharePerApp = 25%)
* App3 (fairSharePerApp = 25%)
Do you see any shortcomings in this formula or can suggest better ways of
handling multiple user issue? I would really appreciate it :)
cc: [~sunilg] [~wangda]
> Fair sharing intra-queue preemption support in Capacity Scheduler
> -----------------------------------------------------------------
>
> Key: YARN-10559
> URL: https://issues.apache.org/jira/browse/YARN-10559
> Project: Hadoop YARN
> Issue Type: Improvement
> Components: capacityscheduler
> Affects Versions: 3.1.4
> Reporter: VADAGA ANANYO RAO
> Assignee: VADAGA ANANYO RAO
> Priority: Major
> Attachments: FairOP_preemption-design_doc_v1.pdf,
> FairOP_preemption-design_doc_v2.pdf, YARN-10559.0001.patch,
> YARN-10559.0002.patch, YARN-10559.0003.patch, YARN-10559.0004.patch,
> YARN-10559.0005.patch, YARN-10559.0006.patch, YARN-10559.0007.patch,
> YARN-10559.0008.patch
>
> Original Estimate: 168h
> Remaining Estimate: 168h
>
> Usecase:
> Due to the way Capacity Scheduler preemption works, If a single user submits
> a large application to a queue (using 100% of resources), that job will not
> be preempted by future applications from the same user within the same queue.
> This implies that the later applications will be forced to wait for
> completion of the long running application. This prevents multiple long
> running, large, applications from running concurrently.
> Support fair sharing among apps while preempting applications from same queue.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]