You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hbase.apache.org by alwin james <ja...@gmail.com> on 2017/09/29 20:22:54 UTC
Configure HBase Load Balancer
Hi Hbasers -
Is there any other parameters to configure load balancer in HBase apart
from 'balance_switch' command and 'hbase.balancer.period' property? Also, I
believe by balancer is on by default.
Regards,
Alwin
Re: Configure HBase Load Balancer
Posted by Ted Yu <yu...@gmail.com>.
balance_switch command affects the whole cluster.
For per table balancing, you can tune:
hbase.master.balancer.stochastic.tableSkewCost
Here is related javadoc:
* Compute the cost of a potential cluster configuration based upon how
evenly
* distributed tables are.
*/
static class TableSkewCostFunction extends CostFunction {
Cheers
On Fri, Sep 29, 2017 at 1:57 PM, alwin james <ja...@gmail.com> wrote:
> Thank You Ted for the reply.
>
> I was interested more about setting load balancer on/off for entire HBase
> cluster. Do we have any parameter that can be set in hbase-site.xml to
> achieve the same (other than 'hbase.balancer.period') ?
>
> Also, I am interested in knowing about load balancer settings on per table
> basis.
>
> I could not find much documentation on 'StochasticLoadBalancer' apart from
> comments present in source code. Any help is highly appreciated.
>
> Regards,
>
> Alwin
>
>
> -----Original Message-----
> From: Ted Yu [mailto:yuzhihong@gmail.com]
> Sent: Friday, September 29, 2017 1:45 PM
> To: user@hbase.apache.org
> Subject: Re: Configure HBase Load Balancer
>
>
>
> Best way is to look at StochasticLoadBalancer The config parameters for
> weights are not in hbase-default.xml
>
>
>
> bq. by balancer is on by default.
>
>
>
> Were you talking about by table ?
>
> On Fri, Sep 29, 2017 at 1:22 PM, alwin james <ja...@gmail.com> wrote:
>
> > Hi Hbasers -
> >
> > Is there any other parameters to configure load balancer in HBase apart
> > from 'balance_switch' command and 'hbase.balancer.period' property?
> Also, I
> > believe by balancer is on by default.
> >
> > Regards,
> > Alwin
> >
>
Re: Configure HBase Load Balancer
Posted by alwin james <ja...@gmail.com>.
Thank You Ted for the reply.
I was interested more about setting load balancer on/off for entire HBase
cluster. Do we have any parameter that can be set in hbase-site.xml to
achieve the same (other than 'hbase.balancer.period') ?
Also, I am interested in knowing about load balancer settings on per table
basis.
I could not find much documentation on 'StochasticLoadBalancer' apart from
comments present in source code. Any help is highly appreciated.
Regards,
Alwin
-----Original Message-----
From: Ted Yu [mailto:yuzhihong@gmail.com]
Sent: Friday, September 29, 2017 1:45 PM
To: user@hbase.apache.org
Subject: Re: Configure HBase Load Balancer
Best way is to look at StochasticLoadBalancer The config parameters for
weights are not in hbase-default.xml
bq. by balancer is on by default.
Were you talking about by table ?
On Fri, Sep 29, 2017 at 1:22 PM, alwin james <ja...@gmail.com> wrote:
> Hi Hbasers -
>
> Is there any other parameters to configure load balancer in HBase apart
> from 'balance_switch' command and 'hbase.balancer.period' property? Also, I
> believe by balancer is on by default.
>
> Regards,
> Alwin
>
Re: Configure HBase Load Balancer
Posted by Ted Yu <yu...@gmail.com>.
Best way is to look at StochasticLoadBalancer
The config parameters for weights are not in hbase-default.xml
bq. by balancer is on by default.
Were you talking about by table ?
On Fri, Sep 29, 2017 at 1:22 PM, alwin james <ja...@gmail.com> wrote:
> Hi Hbasers -
>
> Is there any other parameters to configure load balancer in HBase apart
> from 'balance_switch' command and 'hbase.balancer.period' property? Also, I
> believe by balancer is on by default.
>
> Regards,
> Alwin
>