Re: HBase Load Balancer
StochasticLoadBalancer takes care of both request counts and number of regions. hbase.master.balancer.stochastic.regionCountCost controls the weight for region count, default to 500. hbase.master.balancer.stochastic.readRequestCost controls read request weight, default to 5. hbase.master.balancer.stochastic.writeRequestCost controls write request weight, default to 5. For second part of question, see http://hbase.apache.org/book.html#arch.regions.size On Thu, Sep 28, 2017 at 3:33 PM, alwin jameswrote: > Hi Team - > > Does load balancer balance the load based on read/write requests received > or is it just based on the number of regions assigned to a regionserver? > > Also, is there any recommendation or good practices available on the number > of regions that can be handled by a regionserver? > > Regards, > Alwin >
Re: HBase load balancer
Hi Azuryy, I don't think this is possible but you ca duplicate the default HBase balancer and modify it so it just balance one table.. But what do you want to only balance one? JM 2013/6/3 Azuryy Yu azury...@gmail.com: Hi, Does anybody can tell me how to configure load balancer to balance just one table. Thank.
Re: HBase load balancer
Hi JM, Thanks. actually I expect load balancer work at table level, not region level. does that possible here? On Tue, Jun 4, 2013 at 9:41 AM, Jean-Marc Spaggiari jean-m...@spaggiari.org wrote: Hi Azuryy, I don't think this is possible but you ca duplicate the default HBase balancer and modify it so it just balance one table.. But what do you want to only balance one? JM 2013/6/3 Azuryy Yu azury...@gmail.com: Hi, Does anybody can tell me how to configure load balancer to balance just one table. Thank.
Re: HBase load balancer
Take a look into the balancer code. It's called for each table. So if it's not a table you want to balance, just return an empty plan... JM 2013/6/3 Azuryy Yu azury...@gmail.com: Hi JM, Thanks. actually I expect load balancer work at table level, not region level. does that possible here? On Tue, Jun 4, 2013 at 9:41 AM, Jean-Marc Spaggiari jean-m...@spaggiari.org wrote: Hi Azuryy, I don't think this is possible but you ca duplicate the default HBase balancer and modify it so it just balance one table.. But what do you want to only balance one? JM 2013/6/3 Azuryy Yu azury...@gmail.com: Hi, Does anybody can tell me how to configure load balancer to balance just one table. Thank.
Re: HBase load balancer
Thanks JM, I will read balancer code to get more. On Tue, Jun 4, 2013 at 9:50 AM, Jean-Marc Spaggiari jean-m...@spaggiari.org wrote: Take a look into the balancer code. It's called for each table. So if it's not a table you want to balance, just return an empty plan... JM 2013/6/3 Azuryy Yu azury...@gmail.com: Hi JM, Thanks. actually I expect load balancer work at table level, not region level. does that possible here? On Tue, Jun 4, 2013 at 9:41 AM, Jean-Marc Spaggiari jean-m...@spaggiari.org wrote: Hi Azuryy, I don't think this is possible but you ca duplicate the default HBase balancer and modify it so it just balance one table.. But what do you want to only balance one? JM 2013/6/3 Azuryy Yu azury...@gmail.com: Hi, Does anybody can tell me how to configure load balancer to balance just one table. Thank.
Re: HBase load balancer
bq. I expect load balancer work at table level In 0.94, load balancer performs per-table load balancing. On Mon, Jun 3, 2013 at 6:48 PM, Azuryy Yu azury...@gmail.com wrote: Hi JM, Thanks. actually I expect load balancer work at table level, not region level. does that possible here? On Tue, Jun 4, 2013 at 9:41 AM, Jean-Marc Spaggiari jean-m...@spaggiari.org wrote: Hi Azuryy, I don't think this is possible but you ca duplicate the default HBase balancer and modify it so it just balance one table.. But what do you want to only balance one? JM 2013/6/3 Azuryy Yu azury...@gmail.com: Hi, Does anybody can tell me how to configure load balancer to balance just one table. Thank.
Re: HBase load balancer
Thanks, Ted. I am using 0.94.7 now. On Tue, Jun 4, 2013 at 10:04 AM, Ted Yu yuzhih...@gmail.com wrote: bq. I expect load balancer work at table level In 0.94, load balancer performs per-table load balancing. On Mon, Jun 3, 2013 at 6:48 PM, Azuryy Yu azury...@gmail.com wrote: Hi JM, Thanks. actually I expect load balancer work at table level, not region level. does that possible here? On Tue, Jun 4, 2013 at 9:41 AM, Jean-Marc Spaggiari jean-m...@spaggiari.org wrote: Hi Azuryy, I don't think this is possible but you ca duplicate the default HBase balancer and modify it so it just balance one table.. But what do you want to only balance one? JM 2013/6/3 Azuryy Yu azury...@gmail.com: Hi, Does anybody can tell me how to configure load balancer to balance just one table. Thank.
Re: HBase load balancer
Need to update this badly. But in a quick pinch, this will load balance one table. https://github.com/phobos182/hadoop-hbase-tools/blob/master/hbase/hbase_table_balancer.rb On Mon, Jun 3, 2013 at 7:50 PM, Azuryy Yu azury...@gmail.com wrote: Thanks, Ted. I am using 0.94.7 now. On Tue, Jun 4, 2013 at 10:04 AM, Ted Yu yuzhih...@gmail.com wrote: bq. I expect load balancer work at table level In 0.94, load balancer performs per-table load balancing. On Mon, Jun 3, 2013 at 6:48 PM, Azuryy Yu azury...@gmail.com wrote: Hi JM, Thanks. actually I expect load balancer work at table level, not region level. does that possible here? On Tue, Jun 4, 2013 at 9:41 AM, Jean-Marc Spaggiari jean-m...@spaggiari.org wrote: Hi Azuryy, I don't think this is possible but you ca duplicate the default HBase balancer and modify it so it just balance one table.. But what do you want to only balance one? JM 2013/6/3 Azuryy Yu azury...@gmail.com: Hi, Does anybody can tell me how to configure load balancer to balance just one table. Thank.