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

Weiwei Yang commented on YARN-7822:
-----------------------------------

Hi [~kkaranasos]
{quote}
I had mentioned this case in a comment somewhere. 
{quote}
Yes, you mentioned this in [this 
comment|https://issues.apache.org/jira/browse/YARN-7774?focusedCommentId=16331286&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-16331286]
 and I saw that, but still was confusing. From the design doc, a constraint like

{noformat}

{max-cardinality: 3, scope: host}

{noformat}

this will be interpreted to "don't allocate more than 3 containers per node". 
However, what you were saying was I need to specify

{noformat}

{max-cardinality: 2, scope: host}

{noformat}

to achieve not placing more than 3 containers on a node. Is that correct?

 [~asuresh] regarding to your comments

bq. nested AND / OR is not supported ... it should be possible right ?

I meant to take this step by step. I saw some existing test case had the same 
assumption, e.g 
{{TestPlacementConstraintTransformations#testCompositeConstraint}} so thought 
it might be better not support nested case at first. We can further investigate 
nested case moving on.

bq. Can you replace with SchedulerNode

Sure, will try in next patch. Do you want me to replace all 
{{FiCaSchedulerNode}} in {{TestPlacementConstraintsUtil}} in next patch?

bq. validate an end-2-end scenario ?

Will do.

Thanks

> Constraint satisfaction checker support for composite OR and AND constraints
> ----------------------------------------------------------------------------
>
>                 Key: YARN-7822
>                 URL: https://issues.apache.org/jira/browse/YARN-7822
>             Project: Hadoop YARN
>          Issue Type: Sub-task
>            Reporter: Arun Suresh
>            Assignee: Weiwei Yang
>            Priority: Major
>         Attachments: YARN-7822-YARN-6592.001.patch
>
>
> JIRA to track changes to {{PlacementConstraintsUtil#canSatisfyConstraints}} 
> handle OR and AND Composite constaints



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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

Reply via email to