morrySnow commented on code in PR #1890: URL: https://github.com/apache/doris-website/pull/1890#discussion_r1924808390
########## docs/sql-manual/sql-statements/table-and-view/data-and-status-management/REBALANCE-DISK.md: ########## @@ -24,44 +24,61 @@ under the License. --> +## Description +The `REBALANCE DISK` statement is used to optimize the data distribution on Backend (BE) nodes. This statement has the following functionalities: -### Name - -ADMIN REBALANCE DISK +- It can perform data balancing for specified BE nodes. +- It can balance data across all BE nodes in the entire cluster. +- It prioritizes balancing the data of specified nodes, regardless of the overall balance state of the cluster. -## Description +## Syntax -This statement is used to try to rebalance disks of the specified backends first, no matter if the cluster is balanced +```sql +ADMIN REBALANCE DISK [ ON ( "<host>:<port>" [, ... ] ) ]; +``` -Grammar: +Where: -``` -ADMIN REBALANCE DISK [ON ("BackendHost1:BackendHeartBeatPort1", "BackendHost2:BackendHeartBeatPort2", ...)]; +```sql +<host>:<port> + : Composed of the hostname (or IP address) and heartbeat port. ``` Review Comment: 同上 ########## docs/sql-manual/sql-statements/table-and-view/data-and-status-management/CANCEL-REBALANCE-DISK.md: ########## @@ -26,31 +26,58 @@ under the License. ## Description -This statement is used to cancel rebalancing disks of specified backends with high priority +The `CANCEL REBALANCE DISK` statement is used to cancel the high-priority disk data balancing for Backend (BE) nodes. This statement has the following functionalities: -Grammar: +- It can cancel the high-priority disk balancing for specified BE nodes. +- It can cancel the high-priority disk balancing for all BE nodes in the entire cluster. +- After cancellation, the system will still balance the disk data of BE nodes using the default scheduling method. -ADMIN CANCEL REBALANCE DISK [ON ("BackendHost1:BackendHeartBeatPort1", "BackendHost2:BackendHeartBeatPort2", ...)]; +## Syntax -Explain: +```sql +ADMIN CANCEL REBALANCE DISK [ ON ( "<host>:<port>" [, ... ] ) ]; +``` -1. This statement only indicates that the system no longer rebalance disks of specified backends with high priority. The system will still rebalance disks by default scheduling. +Where: -## Example +```sql +<host>:<port> + : Composed of the hostname (or IP address) and heartbeat port. +``` Review Comment: 这里已经不是语法了,可以去掉。host 和 port 在参数中解释清楚就可以了 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org