[
https://issues.apache.org/jira/browse/YARN-7682?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16306649#comment-16306649
]
Arun Suresh commented on YARN-7682:
-----------------------------------
bq. What about the following: given that the external API is there in the
PlacementConstraints, what if we let users specify random cmin and then fail
(ie, canAssign=false) if there are not already that many containers in the
target.
Agreed - I actually like that idea. Since our rejected scheduling requests, we
introduced in YARN-7612 can also be leveraged here:
if source != target, then that implies that the target allocation tags HAVE to
be on the node before the request with the source tags arrives - which means
the app should send the requests with the target allocation tags in one
allocate() call - and then wait for the containers to be placed - then only can
it send the requests with the different source tags in a subsequent allocate()
call.
If the app sends the requests with source tags != target tags in the first
allocate() call, the Processor will reject those requests and the AM will be
force to resend the requests. The subsequent allocate() call should not fail -
since by then the target tags would be on the node.
> Expose canAssign method in the PlacementConstraintManager
> ---------------------------------------------------------
>
> Key: YARN-7682
> URL: https://issues.apache.org/jira/browse/YARN-7682
> Project: Hadoop YARN
> Issue Type: Sub-task
> Reporter: Arun Suresh
> Assignee: Panagiotis Garefalakis
> Attachments: YARN-7682-YARN-6592.001.patch, YARN-7682.wip.patch
>
>
> As per discussion in YARN-7613. Lets expose {{canAssign}} method in the
> PlacementConstraintManager that takes a sourceTags, applicationId,
> SchedulerNode and AllocationTagsManager and returns true if constraints are
> not violated by placing the container on the node.
> I prefer not passing in the SchedulingRequest, since it can have > 1
> numAllocations. We want this api to be called for single allocations.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]