rebalanceChunksWithinDataNode

Syntax

rebalanceChunksWithinDataNode(nodeAlias, [exec=false])

Arguments

nodeAlias is a string indicating the alias of a node.

exec is a Boolean value indicating whether to initiate data rebalancing within a data node. The default value is false indicating that data rebalancing will not be initiated.

Details

After volumes are added in a data node, partitions on the other volumes need to be rebalanced for optimal performance. This function is used to rebalance data among volumes within a data node. It can only be executed on a controller by an administrator in cluster mode.

Return a table containing the following columns:

name

meaning

chunkId

the chunk ID

srcVolume

source volume

destVolume

destination volume

You can get the status of recovery tasks by getRecoveryTaskStatus on a controller.

Examples

$ rebalanceChunksWithinDataNode("node1")

ChunkId

srcVolume

destVolume

82c6eb6c-36ee-b1b6-4a86-ca24d9faaa25

/hdd/hdd1/volumes

/hdd/hdd2/volumes