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 <[email protected]> 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:[email protected]]
> Sent: Friday, September 29, 2017 1:45 PM
> To: [email protected]
> 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 <[email protected]> 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
> >
>