BALANCE syntax¶
We can submit tasks to load balance Storage services in NebulaGraph. For more information about storage load balancing and examples, see Storage load balance.
Note
For other job management commands, see Job manager and the JOB statements.
The syntax for load balance is described as follows.
Syntax | Description |
---|---|
SUBMIT JOB BALANCE LEADER |
Starts a job to balance the distribution of all the storage leaders in all graph spaces. It returns the job ID. |
SUBMIT JOB BALANCE DATA |
Starts a job to balance the distribution of storage partitions in the current graph space. It returns the job ID. |
SUBMIT JOB BALANCE DATA REMOVE <ip:port> [,<ip>:<port> ...] |
Migrate the partitions in the specified storage host to other storage hosts in the current graph space. |
Note
SUBMIT JOB BALANCE DATA REMOVE
can only clear the partitions of the current graph space. If a Storage service has a large number of graph spaces, you need to switch to all different graph spaces to perform theREMOVE
operation.- Only NebulaGraph Enterprise Edition supports the commands
SUBMIT JOB BALANCE DATA
andSUBMIT JOB BALANCE DATA REMOVE
.
For details about how to view, stop, and restart a job, see Job manager and the JOB statements.
Last update:
June 1, 2023