hadoop-yarn-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Arun Suresh (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (YARN-7681) Scheduler should double-check placement constraint before actual allocation is made
Date Thu, 04 Jan 2018 18:16:00 GMT

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

Arun Suresh commented on YARN-7681:

bq. to double check constraint before commit container allocation. Since we have two different
approaches to allocate SchedulingRequest (1. via PlacementProcessor, 2. via ApplicationPlacementAllocator.).
My change covers the later one, we still need to validate the first one. 
[~leftnoteasy], not sure what you meant by second scheme being validated and the first one
not. Infact, given that YARN-7682 check is more general - it checks all types of constraint
satisfyability - affinity, anti-affinty and cardinality, I would recommend using the {{PlacementConstraintsUtil#canSatisfyConstraints}}
in the {{AppPlacementAllocator}} as well.

> Scheduler should double-check placement constraint before actual allocation is made
> -----------------------------------------------------------------------------------
>                 Key: YARN-7681
>                 URL: https://issues.apache.org/jira/browse/YARN-7681
>             Project: Hadoop YARN
>          Issue Type: Sub-task
>          Components: RM, scheduler
>            Reporter: Weiwei Yang
>            Assignee: Weiwei Yang
> This JIRA is created based on the discussions under YARN-7612, see comments after [this
AllocationTagsManager maintains tags info that helps to make placement decisions at placement
phase, however tags are changing along with container's lifecycle, so it is possible that
the placement violates the constraints at the scheduling phase. Propose to add an extra check
in the scheduler to make sure constraints are still satisfied during the actual allocation.

This message was sent by Atlassian JIRA

To unsubscribe, e-mail: yarn-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: yarn-issues-help@hadoop.apache.org

View raw message