ChenSammi commented on code in PR #9310:
URL: https://github.com/apache/ozone/pull/9310#discussion_r2554814330
##########
hadoop-hdds/docs/content/feature/DiskBalancer.zh.md:
##########
@@ -50,63 +50,120 @@ DiskBalancer 通过 `ozone admin datanode diskbalancer` 命令进行管理。
**注意:**此命令在主帮助信息(`ozone admin datanode
--help`)中隐藏。这是因为该功能目前处于实验阶段,默认禁用。隐藏该命令可防止意外使用,
并为普通用户提供清晰的帮助输出。但是,对于希望启用和使用该功能的用户,该命令仍然完全可用。
-### **启动 DiskBalancer**
-要在所有 Datanode 上使用默认配置启动 DiskBalancer,请执行以下操作:
+### 命令语法
+**启动 DiskBalancer:**
+```bash
+ozone admin datanode diskbalancer start [<datanode-address> ...] [OPTIONS]
[--in-service-datanodes]
+```
-```shell
-ozone admin datanode diskbalancer start -a
+**停止 DiskBalancer:**
+```bash
+ozone admin datanode diskbalancer stop [<datanode-address> ...]
[--in-service-datanodes]
```
-您还可以使用特定选项启动 DiskBalancer:
-```shell
-ozone admin datanode diskbalancer start [options]
+**更新配置:**
+```bash
+ozone admin datanode diskbalancer update [<datanode-address> ...] [OPTIONS]
[--in-service-datanodes]
```
-### **更新配置**
-要更新 DiskBalancer 配置,您可以使用以下命令:
+**获取状态:**
+```bash
+ozone admin datanode diskbalancer status [<datanode-address> ...]
[--in-service-datanodes] [--json]
+```
-```shell
-ozone admin datanode diskbalancer update [options]
+**获取报告:**
+```bash
+ozone admin datanode diskbalancer report [<datanode-address> ...]
[--in-service-datanodes] [--json]
```
-**选项包括:**
-
-| 选项 | 描述 |
-|------------------------------|---------------------------------|
-| `-t, --threshold` | 与磁盘平均利用率的百分比偏差,超过此偏差,数据节点将重新平衡。 |
-| `-b, --bandwithInMB` | DiskBalancer 每秒的最大带宽。 |
-| `-p, --parallelThread` | DiskBalancer 的最大并行线程。 |
-| `-s, --stop-after-disk-even` | 磁盘利用率达到均匀后自动停止 DiskBalancer。 |
-| `-a, --all` | 在所有数据节点上运行命令。 |
-| `-d, --datanodes` | 在特定数据节点上运行命令 |
-
-### **停止 DiskBalancer**
-要停止所有 Datanode 上的 DiskBalancer,请执行以下操作:
-
-```shell
-ozone admin datanode diskbalancer stop -a
+
+### 命令选项
+
+| Option | Description
| Example |
+|-------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------|
+| `<datanode-address>` | 一个或多个数据节点地址作为位置参数。地址可以是:<br>-
主机名(例如,`DN-1`)- 使用默认的 CLIENT_RPC 端口 (9858)<br>- 带端口的主机名(例如,`DN-1:9858`)<br>- IP
地址(例如,`192.168.1.10`)<br>- 带端口的 IP 地址(例如,`192.168.1.10:9858`)<br>- 标准输入 (`-`) -
从标准输入读取数据节点地址,每行一个 | `DN-1`<br>`DN-1:9858`<br>`192.168.1.10`<br>`-` |
+| `--in-service-datanodes` | 它向 SCM 查询所有 IN_SERVICE
数据节点,并在所有这些数据节点上执行该命令。
| `--in-service-datanodes` |
+| `--json` | 输出格式设置为JSON。
| `--json` |
+| `-t/--threshold` | 体积密度阈值百分比(默认值:10.0)。与 `start` 和
`update` 命令一起使用。
| `-t 5`<br>`--threshold 5.0` |
Review Comment:
体积 -> 磁盘使用率
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]