hbase-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sebastian Bauer <ad...@ugame.net.pl>
Subject Re: requests count per HRegion and rebalance
Date Mon, 07 Feb 2011 16:16:50 GMT
then why hbase have this?

in HRegionServer.java:206
// Request counter
private volatile AtomicInteger requestCount = new AtomicInteger();

On 07.02.2011 17:00, Ted Yu wrote:
> In HRegion.java:
>    final AtomicInteger requestsCount = new AtomicInteger(0);
>
> AtomicLong should be used.
>
> On Mon, Feb 7, 2011 at 8:43 AM, Sebastian Bauer<admin@ugame.net.pl>  wrote:
>
>> 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 pass
>> tests :)
>>
>> Regards,
>> SB
>>


-- 

Pozdrawiam
Sebastian Bauer
-----------------------------------------------------
http://tikecik.pl


Mime
View raw message