rebalanceChunksAmongDataNodes
Syntax
rebalanceChunksAmongDataNodes([exec = false])
Arguments
exec is a Boolean value indicating whether to initiate data rebalancing among data nodes. The default value is false indicating that data rebalancing will not be initiated.
Details
This function is used to rebalance data among data nodes for optimal performance after one or more data nodes are added to a DolphinDB cluster. It can only be executed on a controller by an administrator.
Return a table containing the following columns:
name |
meaning |
---|---|
chunkId |
the chunk ID |
srcNode |
alias of source node |
destNode |
alias of destination node |
You can get the status of recovery tasks by getRecoveryTaskStatus on a controller.
Example
$ rebalanceChunksAmongDataNodes()
ChunkId |
srcNode |
destNode |
---|---|---|
99279094-ca12-3b87-48b6-520cbb986f39 |
node1 |
node2 |
45f612b8-42f5-aebd-4cef-e522b6ae1fc8 |
node1 |
node2 |