Return-Path: X-Original-To: apmail-hadoop-common-user-archive@www.apache.org Delivered-To: apmail-hadoop-common-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id ECFFA178FD for ; Thu, 17 Sep 2015 10:47:56 +0000 (UTC) Received: (qmail 69405 invoked by uid 500); 17 Sep 2015 10:47:52 -0000 Delivered-To: apmail-hadoop-common-user-archive@hadoop.apache.org Received: (qmail 69291 invoked by uid 500); 17 Sep 2015 10:47:52 -0000 Mailing-List: contact user-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@hadoop.apache.org Delivered-To: mailing list user@hadoop.apache.org Received: (qmail 69281 invoked by uid 99); 17 Sep 2015 10:47:52 -0000 Received: from Unknown (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 Sep 2015 10:47:52 +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 CD7251A2194 for ; Thu, 17 Sep 2015 10:47:51 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.879 X-Spam-Level: ** X-Spam-Status: No, score=2.879 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=3, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-eu-west.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id aKKZ7KL-tYch for ; Thu, 17 Sep 2015 10:47:50 +0000 (UTC) Received: from mail-oi0-f42.google.com (mail-oi0-f42.google.com [209.85.218.42]) by mx1-eu-west.apache.org (ASF Mail Server at mx1-eu-west.apache.org) with ESMTPS id F1D5A253E6 for ; Thu, 17 Sep 2015 10:47:49 +0000 (UTC) Received: by oibi136 with SMTP id i136so7232865oib.3 for ; Thu, 17 Sep 2015 03:47:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=YDasuvONag/8Zz6H+VTzA0wb9FtqLfLRF9WIYKM0mAU=; b=rCgk6ZIKPhmQ/zgLstBHRgGE/iX/y9wg+B5dJSQdmfbGcVaBoiCe/8VIXFDfJQ6dtB 6VBhr/JQkPhmhuvP5mQXsXFePToxv3jz+ov/wXiXskVYJo+g19jZ/9qN8Jz/+uZVHTr6 vzxAGUiYDzBZMDabaCTqVMPGVNoJJMYBWR97t/lSHw+jo5z54LFo11T1hxl1+tmNYBfB 0gBOUtmEVlSsJo8QeTyz+2u8Li6J7UjTnkuW43VJJXb4UJ09DHeyR9M4FU2qHrNsqs2+ /lcyxcbgeSRwnB5Yxgf+/bVmNZgTeC71rQtO88dtOeou2jRJVtUDQlzO1QSphYfF4iip iVIg== MIME-Version: 1.0 X-Received: by 10.202.194.9 with SMTP id s9mr26829656oif.56.1442486863162; Thu, 17 Sep 2015 03:47:43 -0700 (PDT) Received: by 10.202.62.87 with HTTP; Thu, 17 Sep 2015 03:47:43 -0700 (PDT) In-Reply-To: References: Date: Thu, 17 Sep 2015 16:17:43 +0530 Message-ID: Subject: Re: Concurrency control From: Naganarasimha Garla To: user@hadoop.apache.org Content-Type: multipart/alternative; boundary=001a113dc334127406051fef2522 --001a113dc334127406051fef2522 Content-Type: text/plain; charset=UTF-8 Hi Laxman, Yes if cgroups are enabled and "yarn.scheduler.capacity.resource-calculator" configured to DominantResourceCalculator then cpu and memory can be controlled. Please Kindly furhter refer to the official documentation http://hadoop.apache.org/docs/r1.2.1/capacity_scheduler.html But may be if say more about problem then we can suggest ideal configuration, seems like capacity configuration and splitting of the queue is not rightly done or you might refer to Fair Scheduler if you want more fairness for container allocation for different apps. On Thu, Sep 17, 2015 at 4:10 PM, Laxman Ch wrote: > Hi, > > In YARN, do we have any way to control the amount of resources (vcores, > memory) used by an application SIMULTANEOUSLY. > > - In my cluster, noticed some large and long running mr-app occupied all > the slots of the queue and blocking other apps to get started. > - I'm using Capacity schedulers (using hierarchical queues and preemption > disabled) > - Using Hadoop version 2.6.0 > - Did some googling around this and gone through configuration docs but > I'm not able to find anything that matches my requirement. > > If needed, I can provide more details on the usecase and problem. > > -- > Thanks, > Laxman > --001a113dc334127406051fef2522 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi Laxman,
Yes if cgroups are enabled and "yarn.scheduler.capacity.resource-calculator"= =C2=A0configured to=C2=A0DominantResourceCalculator=C2=A0then cpu and memory ca= n be controlled.
Please Kindly = =C2=A0furhter refer to the official documentation=C2=A0
http://hadoop.= apache.org/docs/r1.2.1/capacity_scheduler.html

=
But may be if say more about problem then we can suggest ideal configu= ration, seems like capacity configuration and splitting of the queue is not= rightly done or you might refer to Fair Scheduler if you want more fairnes= s for container allocation for different apps.

On Thu, Sep 17, 2015 at 4:10 PM, L= axman Ch <laxman.lux@gmail.com> wrote:
Hi,

In YA= RN, do we have any way to control the amount of resources (vcores, memory) = used by an application SIMULTANEOUSLY.

- In m= y cluster, noticed some large and long running mr-app occupied all the slot= s of the queue and blocking other apps to get started.
- I'm = using Capacity schedulers (using hierarchical queues and preemption disable= d)=C2=A0
- Using Hadoop version 2.6.0
- Did some googli= ng around this and gone through configuration docs but I'm not able to = find anything that matches my requirement.

If need= ed, I can provide more details on the usecase and problem.

--
Thanks,
Laxman

--001a113dc334127406051fef2522--