hbase-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stack <st...@duboce.net>
Subject Re: requests count per HRegion and rebalance
Date Mon, 07 Feb 2011 17:36:58 GMT
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 <admin@ugame.net.pl> 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 = 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