Return-Path: Delivered-To: apmail-hadoop-core-dev-archive@www.apache.org Received: (qmail 46099 invoked from network); 21 May 2009 22:00:03 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 21 May 2009 22:00:03 -0000 Received: (qmail 81155 invoked by uid 500); 21 May 2009 22:00:15 -0000 Delivered-To: apmail-hadoop-core-dev-archive@hadoop.apache.org Received: (qmail 81094 invoked by uid 500); 21 May 2009 22:00:15 -0000 Mailing-List: contact core-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: core-dev@hadoop.apache.org Delivered-To: mailing list core-dev@hadoop.apache.org Received: (qmail 81083 invoked by uid 99); 21 May 2009 22:00:15 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 21 May 2009 22:00:15 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 21 May 2009 22:00:05 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id CA15F234C498 for ; Thu, 21 May 2009 14:59:45 -0700 (PDT) Message-ID: <1001951903.1242943185826.JavaMail.jira@brutus> Date: Thu, 21 May 2009 14:59:45 -0700 (PDT) From: "Matei Zaharia (JIRA)" To: core-dev@hadoop.apache.org Subject: [jira] Updated: (HADOOP-5170) Set max map/reduce tasks on a per-job basis, either per-node or cluster-wide In-Reply-To: <868813338.1233782639518.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HADOOP-5170?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Matei Zaharia updated HADOOP-5170: ---------------------------------- Attachment: tasklimits-v3.patch Here's a new patch with unit tests. I used MiniMRCluster because it's hard to test obtainNewMapTask/ReduceTask directly without duplicating a lot of the code in MiniMRCluster (setting up a JobTracker and a TaskTracker). > Set max map/reduce tasks on a per-job basis, either per-node or cluster-wide > ---------------------------------------------------------------------------- > > Key: HADOOP-5170 > URL: https://issues.apache.org/jira/browse/HADOOP-5170 > Project: Hadoop Core > Issue Type: New Feature > Components: mapred > Reporter: Jonathan Gray > Assignee: Matei Zaharia > Attachments: tasklimits-v2.patch, tasklimits-v3.patch, tasklimits.patch > > > There are a number of use cases for being able to do this. The focus of this jira should be on finding what would be the simplest to implement that would satisfy the most use cases. > This could be implemented as either a per-node maximum or a cluster-wide maximum. It seems that for most uses, the former is preferable however either would fulfill the requirements of this jira. > Some of the reasons for allowing this feature (mine and from others on list): > - I have some very large CPU-bound jobs. I am forced to keep the max map/node limit at 2 or 3 (on a 4 core node) so that I do not starve the Datanode and Regionserver. I have other jobs that are network latency bound and would like to be able to run high numbers of them concurrently on each node. Though I can thread some jobs, there are some use cases that are difficult to thread (scanning from hbase) and there's significant complexity added to the job rather than letting hadoop handle the concurrency. > - Poor assignment of tasks to nodes creates some situations where you have multiple reducers on a single node but other nodes that received none. A limit of 1 reducer per node for that job would prevent that from happening. (only works with per-node limit) > - Poor mans MR job virtualization. Since we can limit a jobs resources, this gives much more control in allocating and dividing up resources of a large cluster. (makes most sense w/ cluster-wide limit) -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.