Return-Path: X-Original-To: apmail-hadoop-hdfs-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-hdfs-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7E17918A1E for ; Sat, 9 May 2015 01:45:00 +0000 (UTC) Received: (qmail 29249 invoked by uid 500); 9 May 2015 01:45:00 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 29188 invoked by uid 500); 9 May 2015 01:45:00 -0000 Mailing-List: contact hdfs-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hdfs-issues@hadoop.apache.org Delivered-To: mailing list hdfs-issues@hadoop.apache.org Received: (qmail 29176 invoked by uid 99); 9 May 2015 01:45:00 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 09 May 2015 01:45:00 +0000 Date: Sat, 9 May 2015 01:45:00 +0000 (UTC) From: "zhangduo (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HDFS-5270) Use thread pools in the datenode daemons MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HDFS-5270?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14536103#comment-14536103 ] zhangduo commented on HDFS-5270: -------------------------------- Yeah HTTP/2 is great, but netty also uses a thread pool, so the problem is still there unless we rewrite all the pipeline related logic which means we still need to keep backward compatibility... Anyway, I will work on a patch which at least can pass unit tests. And I'm also open to HDFS-7966. But I do not think there is a way which we do not need to eat this shit if the shit is like a big mountain in front of us...:( > Use thread pools in the datenode daemons > ---------------------------------------- > > Key: HDFS-5270 > URL: https://issues.apache.org/jira/browse/HDFS-5270 > Project: Hadoop HDFS > Issue Type: Improvement > Components: datanode > Reporter: Haohui Mai > Assignee: Haohui Mai > Labels: BB2015-05-TBR > Attachments: HDFS-5270.000.patch, HDFS-5270.2.patch, TestConcurrentAccess.java > > > The current implementation of the datanode creates a thread when a new request comes in. This incurs high overheads for the creation / destruction of threads, making the datanode unstable under high concurrent loads. > This JIRA proposes to use a thread pool to reduce the overheads. -- This message was sent by Atlassian JIRA (v6.3.4#6332)