Skip to content

Commit

Permalink
Update 2.balance-syntax.md
Browse files Browse the repository at this point in the history
  • Loading branch information
cooper-lzy authored Jun 1, 2023
1 parent 2ae1dd0 commit 56325e8
Showing 1 changed file with 5 additions and 16 deletions.
21 changes: 5 additions & 16 deletions docs-2.0/synchronization-and-migration/2.balance-syntax.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,26 +8,15 @@ We can submit tasks to load balance Storage services in NebulaGraph. For more in

The syntax for load balance is described as follows.

{{ comm.comm_begin }}

|Syntax|Description|
|:---|:---|
|`BALANCE LEADER`| Starts a job to balance the distribution of all the storage leaders in all graph spaces. It returns the job ID. |

{{ comm.comm_end }}

{{ ent.ent_begin }}

|Syntax|Description|
|:---|:---|
|`BALANCE LEADER`| Starts a job to balance the distribution of all the storage leaders in all graph spaces. It returns the job ID. |
|`BALANCE DATA`| Starts a job to balance the distribution of storage partitions in the current graph space. It returns the job ID. |
|`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 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

`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 the `REMOVE` operation.

{{ ent.ent_end }}
- `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 the `REMOVE` operation.
- Only NebulaGraph Enterprise Edition supports the commands `SUBMIT JOB BALANCE DATA` and `SUBMIT JOB BALANCE DATA REMOVE`.

For details about how to view, stop, and restart a job, see [Job manager and the JOB statements](../3.ngql-guide/4.job-statements.md).

0 comments on commit 56325e8

Please sign in to comment.