Return-Path: Delivered-To: apmail-hbase-issues-archive@www.apache.org Received: (qmail 86150 invoked from network); 12 Apr 2011 05:23:47 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 12 Apr 2011 05:23:47 -0000 Received: (qmail 90704 invoked by uid 500); 12 Apr 2011 05:23:47 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 90665 invoked by uid 500); 12 Apr 2011 05:23:47 -0000 Mailing-List: contact issues-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@hbase.apache.org Received: (qmail 90649 invoked by uid 99); 12 Apr 2011 05:23:46 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Apr 2011 05:23:46 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Apr 2011 05:23:43 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id B339F9DB62 for ; Tue, 12 Apr 2011 05:23:05 +0000 (UTC) Date: Tue, 12 Apr 2011 05:23:05 +0000 (UTC) From: "Ted Yu (JIRA)" To: issues@hbase.apache.org Message-ID: <198747168.51770.1302585785730.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <398326764.51217.1302568985732.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (HBASE-3767) Cache the number of RS in HTable 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/HBASE-3767?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13018726#comment-13018726 ] Ted Yu commented on HBASE-3767: ------------------------------- The number of region servers in the cluster is used in the following: {code} int nrThreads = conf.getInt("hbase.htable.threads.max", getCurrentNrHRS()); ... this.pool = new ThreadPoolExecutor(nrThreads, nrThreads, {code} Can we default the value for hbase.htable.threads.max using a multiple of the available processors ? > Cache the number of RS in HTable > -------------------------------- > > Key: HBASE-3767 > URL: https://issues.apache.org/jira/browse/HBASE-3767 > Project: HBase > Issue Type: Improvement > Affects Versions: 0.90.2 > Reporter: Jean-Daniel Cryans > Fix For: 0.90.3 > > > When creating a new HTable we have to query ZK to learn about the number of region servers in the cluster. That is done for every single one of them, I think instead we should do it once per JVM and then reuse that number for all the others. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira