Return-Path: Delivered-To: apmail-hbase-dev-archive@www.apache.org Received: (qmail 7954 invoked from network); 7 Feb 2011 17:37:28 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 7 Feb 2011 17:37:28 -0000 Received: (qmail 23781 invoked by uid 500); 7 Feb 2011 17:37:27 -0000 Delivered-To: apmail-hbase-dev-archive@hbase.apache.org Received: (qmail 23316 invoked by uid 500); 7 Feb 2011 17:37:25 -0000 Mailing-List: contact dev-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hbase.apache.org Delivered-To: mailing list dev@hbase.apache.org Received: (qmail 23291 invoked by uid 99); 7 Feb 2011 17:37:24 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 07 Feb 2011 17:37:24 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of saint.ack@gmail.com designates 74.125.82.169 as permitted sender) Received: from [74.125.82.169] (HELO mail-wy0-f169.google.com) (74.125.82.169) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 07 Feb 2011 17:37:19 +0000 Received: by wyj26 with SMTP id 26so4999084wyj.14 for ; Mon, 07 Feb 2011 09:36:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type :content-transfer-encoding; bh=8EcYTfZxnMx4i3mjv8LE9tcK12I7fOsS4/5xdc6gfyo=; b=Kbe3cmr2JodO3fTlVJvfV0jdzYKoKiSGq0rF9Z4Hx9e5ycgxab6KCct61VhvN/TRwh jdng2Z6vhwp9L0xVZFrMRtEpIWRbcWzp/4a7gf+8TZQB6VkznZ3RQ5KYD2sRCFTNwie5 v3KFG/S1OkB6c39lI82qnmq9+Yfy+6iruSmK8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type :content-transfer-encoding; b=WGID3Dx0KlV4cNSn0c4Agrln0x9FmSSGnw/rJXrJPaVoHU5pQcFeiwKmYU7kYn04/A +EO4D8K7WZnHUpgs2uIE6AozsbBUsnTW8jldSpdZ2ni2CmbfUr3WJB6kx3WtYxZlLQ/p FYLpKeub44oVNI8YHNVEeUs52Z/56LcOJSp4A= MIME-Version: 1.0 Received: by 10.227.145.198 with SMTP id e6mr16153862wbv.151.1297100218062; Mon, 07 Feb 2011 09:36:58 -0800 (PST) Sender: saint.ack@gmail.com Received: by 10.216.49.11 with HTTP; Mon, 7 Feb 2011 09:36:58 -0800 (PST) In-Reply-To: <4D501E2B.6030907@ugame.net.pl> References: <1331420576.5060457.1297072084257.JavaMail.fmail@mwmweb011> <4D50211A.3060001@ugame.net.pl> <4D501AF2.20008@ugame.net.pl> <4D501E2B.6030907@ugame.net.pl> Date: Mon, 7 Feb 2011 09:36:58 -0800 X-Google-Sender-Auth: weoSO7w7s04HO6IUotSuAcHiz3A Message-ID: Subject: Re: requests count per HRegion and rebalance From: Stack To: dev@hbase.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Sebastian: I was going to say please make an issue with this good stuff but I notice you just started in. Good on you Sebastian. Thanks, St.Ack On Mon, Feb 7, 2011 at 8:30 AM, Sebastian Bauer wrote: > path-1 with AtomicLong: > http://paste.org/pastebin/view/28532 > > On 07.02.2011 17:16, Sebastian Bauer wrote: >> >> then why hbase have this? >> >> in HRegionServer.java:206 >> // Request counter >> private volatile AtomicInteger requestCount =3D new AtomicInteger(); >> >> On 07.02.2011 17:00, Ted Yu wrote: >>> >>> In HRegion.java: >>> =A0 final AtomicInteger requestsCount =3D new AtomicInteger(0); >>> >>> AtomicLong should be used. >>> >>> On Mon, Feb 7, 2011 at 8:43 AM, Sebastian Bauer >>> =A0wrote: >>> >>>> Hi, >>>> >>>> Path-1 add another mertic for HRegion to count request made to region. >>>> >>>> Path-2 add another command to hbase shell to grab all regions, sort by >>>> requests from Path-1 and move in round-robin algorithm to servers >>>> >>>> >>>> Path-1: http://paste.org/pastebin/view/28526 >>>> Path-2: http://paste.org/pastebin/view/28528 >>>> >>>> >>>> PS. I'm not a java nor ruby coder but this code working for us and pas= s >>>> tests :) >>>> >>>> Regards, >>>> SB >>>> >> >> > > > -- > > Pozdrawiam > Sebastian Bauer > ----------------------------------------------------- > http://tikecik.pl > >