You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hbase.apache.org by Ted Yu <yu...@gmail.com> on 2011/05/21 07:34:04 UTC

accessing HServerLoad from LoadBalancer

Hi,
In trunk, LoadBalancer.ServerAndLoad greatly reduces the memory footprint of
serversByLoad Map.
Currently LoadBalancer balances region count.

In the future, request histogram may be recorded in, say HServerLoad.
ServerManager has all such information:
      for (Map.Entry<ServerName, HServerLoad> e:
          this.serverManager.getOnlineServers().entrySet()) {
Shall we make ServerManager accessible by LoadBalancer ?

Thanks

Re: accessing HServerLoad from LoadBalancer

Posted by Ted Yu <yu...@gmail.com>.
My initial, unsuccessful, attempt at HBASE-3943 reminded me of the proposal
below.

Please comment on whether/how HServerLoad is made accessible to load
balancer.

Thanks

On Fri, May 20, 2011 at 10:34 PM, Ted Yu <yu...@gmail.com> wrote:

> Hi,
> In trunk, LoadBalancer.ServerAndLoad greatly reduces the memory footprint
> of serversByLoad Map.
> Currently LoadBalancer balances region count.
>
> In the future, request histogram may be recorded in, say HServerLoad.
> ServerManager has all such information:
>       for (Map.Entry<ServerName, HServerLoad> e:
>           this.serverManager.getOnlineServers().entrySet()) {
> Shall we make ServerManager accessible by LoadBalancer ?
>
> Thanks
>