You are viewing a plain text version of this content. The canonical link for it is here.
Posted to yarn-issues@hadoop.apache.org by "Panagiotis Garefalakis (JIRA)" <ji...@apache.org> on 2018/01/02 13:45:00 UTC

[jira] [Comment Edited] (YARN-7682) Expose canAssign method in the PlacementConstraintManager

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

Panagiotis Garefalakis edited comment on YARN-7682 at 1/2/18 1:44 PM:
----------------------------------------------------------------------

[~asuresh] [~kkaranasos] thanks for the feedback.

Please check the latest patch.
It assumes target allocation tags need to be present before the constrained request arrival otherwise they get rejected and it is up to the AM to resend.
Thus there is no need to differentiate between source and target Tags in the current implementation.

I also included some more complex test cases including intra-application affinity, antiaffinity and cardinality constraints.


was (Author: pgaref):
[~asuresh] [~kkaranasos] thanks for the feedback.

Please find attached the latest patch.
It assumes target allocation tags need to be present before the constrained request arrival otherwise they get rejected and it is up to the AM to resend.
Thus there is no need to differentiate between source and target Tags in the current implementation.

I also included some more complex test cases including intra-application affinity, antiaffinity and cardinality constraints.

> 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-YARN-6592.002.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: yarn-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: yarn-issues-help@hadoop.apache.org