You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Aravind Gottipati (JIRA)" <ji...@apache.org> on 2011/05/07 00:52:03 UTC

[jira] [Updated] (HBASE-3866) Script to add regions gradually to a new regionserver.

     [ https://issues.apache.org/jira/browse/HBASE-3866?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Aravind Gottipati updated HBASE-3866:
-------------------------------------

    Attachment: slow_balancer.rb

This script uses a lot of the code from region_mover.rb.  The script should be invoked like this.

 HBASE_NOEXEC=true $HBASE_HOME/bin/hbase org.jruby.Main $HBASE_HOME/bin/slow_balancer.rb --debug -l 2

The -l option is the target difference between the server with the maximum regions and the server with the minimum regions.  Once the delta reaches this point, the script exits.  If -l is not passed, it defaults to the number of region servers in your environment.


> Script to add regions gradually to a new regionserver.
> ------------------------------------------------------
>
>                 Key: HBASE-3866
>                 URL: https://issues.apache.org/jira/browse/HBASE-3866
>             Project: HBase
>          Issue Type: Improvement
>          Components: scripts
>    Affects Versions: 0.90.2
>            Reporter: Aravind Gottipati
>            Priority: Minor
>         Attachments: slow_balancer.rb
>
>
> When a new region server is brought online, the current balancer kicks off a whole bunch of region moves and causes a lot of regions to be un-available right away.  A slower balancer that gradually balances the cluster is probably a good script to have.  I have an initial version that mooches off the region_mover script to do this.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira