Return-Path: Delivered-To: apmail-hadoop-hbase-user-archive@minotaur.apache.org Received: (qmail 74621 invoked from network); 1 Mar 2010 09:30:14 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 1 Mar 2010 09:30:14 -0000 Received: (qmail 5684 invoked by uid 500); 1 Mar 2010 09:30:13 -0000 Delivered-To: apmail-hadoop-hbase-user-archive@hadoop.apache.org Received: (qmail 5646 invoked by uid 500); 1 Mar 2010 09:30:13 -0000 Mailing-List: contact hbase-user-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hbase-user@hadoop.apache.org Delivered-To: mailing list hbase-user@hadoop.apache.org Received: (qmail 5638 invoked by uid 99); 1 Mar 2010 09:30:13 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Mar 2010 09:30:13 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of ryanobjc@gmail.com designates 209.85.223.172 as permitted sender) Received: from [209.85.223.172] (HELO mail-iw0-f172.google.com) (209.85.223.172) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Mar 2010 09:30:06 +0000 Received: by iwn2 with SMTP id 2so2377718iwn.29 for ; Mon, 01 Mar 2010 01:29:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=g+fJZC4j6dCBzH89goQ29EyIBQesIzGJJ1Ih7MAUdEE=; b=EVxkOLRfBs4e7XuS8IxEzmI0QZRvqs85msOuwYPuUj4NZgJaocmQZDxkgxCICH9O0g CwD3z/af6rB7fwpCsB8Iyfjs75qgp1Wmr8rl1VCFYEWaM0t3q4xiDIxIiI2//2E6AUJ3 UxWCA9FKhbHk0TFVyuK7mVVktjKaJO/j7zlhw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=kzPAic8wyuAX2S4E5LwHCExMlE+x31Pzmgj5Mn+j67uEq8HIolam9QhchZYAq4mos1 HqlsVQAPu6wc7CK7Px0c0pqQD7Ak2KU0fwy/9WRCSaAXCkhX+ubwHHroUqhDgZDaV8zf 6GoZMSE6+xPZ8tbeMCh5Ooc98boWNe787eCcE= MIME-Version: 1.0 Received: by 10.231.170.136 with SMTP id d8mr71755ibz.17.1267435786133; Mon, 01 Mar 2010 01:29:46 -0800 (PST) In-Reply-To: References: <78568af11003010008u125c2f1dga148efacb390eeee@mail.gmail.com> Date: Mon, 1 Mar 2010 01:29:46 -0800 Message-ID: <78568af11003010129k29ab248fle0adb1ee5e09203f@mail.gmail.com> Subject: Re: setting of HBase, how much memory should be reserved for a Hbase regionserver. From: Ryan Rawson To: hbase-user@hadoop.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable The block cache is the memory limit used to keep blocks in the regionserver memory to allow you to have faster operations. It's literally a ram cache. And yes, adding more regionservers helps :-) Hooray for near-linear scalability. On Mon, Mar 1, 2010 at 12:26 AM, steven zhuang wr= ote: > thanks, Ryan, > =A0 =A0 =A0 =A0 =A0 =A0I think I can enlarge the heap size a little, and = meanwhile > shrink the write buffer sounds good too, but I am not sure we can disable > the block cache, since the table is already built, anyway I can do that? > > =A0 =A0 =A0 =A0 =A0 =A0I still have the question that if I add more regio= nservers, will > the load on current nodes be reduced to make the cluster run OK? > > > > On Mon, Mar 1, 2010 at 4:08 PM, Ryan Rawson wrote: > >> I would consider doing the following things: >> >> - disable the block cache - you dont have ram to spare. 4gb is really >> minimum (my laptop is 4gb ram and i decry how sucky I am occasionally) >> - run between 1000-2000m, with the cache disabled you are in better shap= e >> - consider adjusting the config values: >> =A0 =A0hbase.regionserver.global.memstore.upperLimit >> =A0 =A00.4 >> >> This implies that memstore (the write buffer) can occupy 40% of heap. >> This might be too aggressive with a small heap and CMS. =A0Try changing >> that to 0.2 and: >> >> =A0 =A0hbase.regionserver.global.memstore.lowerLimit >> =A0 =A00.35 >> >> to 0.10 or so. >> >> Good luck! >> -ryan >> >> On Sun, Feb 28, 2010 at 11:59 PM, steven zhuang >> wrote: >> > hi, all, >> > =A0 =A0 =A0 =A0 =A0We have some PCs(a dozens of them) with =A04 cores = CPU and 4GB ram >> > each, a hadoop instance is already running on these machines. >> > >> > =A0 =A0 =A0 =A0 =A0Currently there is around 1.2GB ram left on every n= ode. >> > >> > =A0 =A0 =A0 =A0 =A0We want to setup a Hbase instance on these machines= , with 3 >> quorum >> > servers and 5 region servers, but we kept getting "out of memory" erro= r >> when >> > the table grows big on some nodes. >> > >> > =A0 =A0 =A0 =A0 =A0I know HBase is really a memory eater, my question = is can we set >> > up a Hbase cluster on these PC if we add more region servers? how much >> ram >> > should we reserve to make hbase run happily? >> > >> > =A0 =A0 =A0 =A0 =A0An option is we put hbase regionservers and Hadoop >> > datanode/tasktracker on different node respectively(Not tried yet), bu= t I >> > don't know how much this would influence the performance, as we can no= t >> > benefit from the data locality. >> > >> > -- >> > =A0 =A0 =A0 best wishes. >> > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0steven >> > >> > > > > -- > =A0 =A0 =A0 best wishes. > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0steven >