We can submit tasks to load balance Storage services in NebulaGraph. For more information about storage load balancing and examples, see Storage load balance.
For other job management commands, see Job manager and the JOB statements.
The syntax for load balance is described as follows.
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.
SUBMIT JOB BALANCE DATA REMOVEcan 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 the
- Only NebulaGraph Enterprise Edition supports the commands
SUBMIT JOB BALANCE DATAand
SUBMIT JOB BALANCE DATA REMOVE.
For details about how to view, stop, and restart a job, see Job manager and the JOB statements.