Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 69A44200D0C for ; Wed, 6 Sep 2017 03:16:09 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 629FD1609DD; Wed, 6 Sep 2017 01:16:09 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id A900F1609C5 for ; Wed, 6 Sep 2017 03:16:08 +0200 (CEST) Received: (qmail 11849 invoked by uid 500); 6 Sep 2017 01:16:07 -0000 Mailing-List: contact yarn-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list yarn-issues@hadoop.apache.org Received: (qmail 11829 invoked by uid 99); 6 Sep 2017 01:16:07 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Sep 2017 01:16:07 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 3BC371A3487 for ; Wed, 6 Sep 2017 01:16:07 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -100.002 X-Spam-Level: X-Spam-Status: No, score=-100.002 tagged_above=-999 required=6.31 tests=[RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id owhfSknOvuTv for ; Wed, 6 Sep 2017 01:16:06 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id AFF175FD33 for ; Wed, 6 Sep 2017 01:16:05 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 8D956E0ED9 for ; Wed, 6 Sep 2017 01:16:04 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 66EA224158 for ; Wed, 6 Sep 2017 01:16:02 +0000 (UTC) Date: Wed, 6 Sep 2017 01:16:02 +0000 (UTC) From: "Steven Rand (JIRA)" To: yarn-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (YARN-6956) preemption may only consider resource requests for one node MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 06 Sep 2017 01:16:09 -0000 [ https://issues.apache.org/jira/browse/YARN-6956?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16154671#comment-16154671 ] Steven Rand commented on YARN-6956: ----------------------------------- Friendly ping [~kasha] and/or [~templedf]. I'll fix the checkstyle issues in the next patch, but wanted to gather other feedback as well. > preemption may only consider resource requests for one node > ----------------------------------------------------------- > > Key: YARN-6956 > URL: https://issues.apache.org/jira/browse/YARN-6956 > Project: Hadoop YARN > Issue Type: Bug > Components: fairscheduler > Affects Versions: 2.9.0, 3.0.0-beta1 > Environment: CDH 5.11.0 > Reporter: Steven Rand > Assignee: Steven Rand > Attachments: YARN-6956.001.patch > > > I'm observing the following series of events on a CDH 5.11.0 cluster, which seem to be possible after YARN-6163: > 1. An application is considered to be starved, so {{FSPreemptionThread}} calls {{identifyContainersToPreempt}}, and that calls {{FSAppAttempt#getStarvedResourceRequests}} to get a list of {{ResourceRequest}} instances that are enough to address the app's starvation. > 2. The first {{ResourceRequest}} that {{getStarvedResourceRequests}} sees is enough to address the app's starvation, so we break out of the loop over {{appSchedulingInfo.getAllResourceRequests()}} after only one iteration: https://github.com/apache/hadoop/blob/trunk/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/scheduler/fair/FSAppAttempt.java#L1180. We return only this one {{ResourceRequest}} back to the {{identifyContainersToPreempt}} method. > 3. It turns out that this particular {{ResourceRequest}} happens to have a value for {{getResourceName}} that identifies a specific node in the cluster. This causes preemption to only consider containers on that node, and not the rest of the cluster. > [~kasha], does that make sense? I'm happy to submit a patch if I'm understanding the problem correctly. -- 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