[ 
https://issues.apache.org/jira/browse/KUDU-2780?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17063551#comment-17063551
 ] 

ASF subversion and git services commented on KUDU-2780:
-------------------------------------------------------

Commit 664d7fec8e603d930e7ca2c8302130103f4fbcac in kudu's branch 
refs/heads/master from hannahvnguyen
[ https://gitbox.apache.org/repos/asf?p=kudu.git;h=664d7fe ]

KUDU-2780: create thread for auto-rebalancing

The auto-rebalancer thread is a background task of
the master's catalog manager. Each loop iteration, the
thread collects information on tablet servers, tables,
and tablets, in order to determine the best rebalancing
replica moves for the current state of the cluster.
The maximum number of moves per tserver, per iteration,
is controlled by a flag. Currently, each batch of moves
scheduled per iteration is executed synchronously. The
thread waits for the moves to complete, then sleeps for a
time interval, which is controlled by a flag, before resuming.

If the cluster has placement policy violations, the thread
will prioritize scheduling and executing replica moves to
reinstate the policy. Otherwise, the thread will perform
inter-location (cross-location), then intra-location (by
table, then by tserver) rebalancing.

By default, auto-rebalancing is disabled. This can be
changed by a flag in the catalog manager. The rebalancer
tool should be run first, to fully rebalance the cluster,
before enabling auto-rebalancing.

Change-Id: Ifca25d1063c07047cf2123e6792b3c7395be20e4
Reviewed-on: http://gerrit.cloudera.org:8080/14177
Tested-by: Kudu Jenkins
Reviewed-by: Alexey Serbin <[email protected]>
Reviewed-by: Andrew Wong <[email protected]>


> Rebalance Kudu cluster in background
> ------------------------------------
>
>                 Key: KUDU-2780
>                 URL: https://issues.apache.org/jira/browse/KUDU-2780
>             Project: Kudu
>          Issue Type: Improvement
>          Components: master
>            Reporter: Alexey Serbin
>            Assignee: Hannah Nguyen
>            Priority: Major
>              Labels: roadmap-candidate
>
> With the introduction of `kudu cluster rebalance` CLI tool it's possible to 
> balance the distribution of tablet replicas in a Kudu cluster.  However, that 
> tool should be run manually or via an external scheduler (e.g. cron).
> It would be nice if Kudu would track and correct imbalances of replica 
> distribution automatically.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to