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<[email protected]>  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

Reply via email to