Skip to content

HDDS-15441. [DiskBalancer] Fix DiskBalancer documentation inconsistencies.#10399

Open
slfan1989 wants to merge 1 commit into
apache:masterfrom
slfan1989:HDDS-15441
Open

HDDS-15441. [DiskBalancer] Fix DiskBalancer documentation inconsistencies.#10399
slfan1989 wants to merge 1 commit into
apache:masterfrom
slfan1989:HDDS-15441

Conversation

@slfan1989
Copy link
Copy Markdown
Contributor

What changes were proposed in this pull request?

This PR fixes several inconsistencies in the English and Chinese DiskBalancer documentation.

The DiskBalancer docs had examples and default values that did not match the current implementation:

  • The feature flag section said DiskBalancer should be enabled by setting the property to true, but the example used hdds.datanode.disk.balancer.enabled = false.

  • The --parallel-thread option documented the default as 1, while the code default is 5.

  • The Chinese doc documented --stop-after-disk-even default as false, while the code default is true.

  • The --container-states example used OPEN,CLOSED, but OPEN is rejected by DiskBalancer validation because open-to-write container states are not movable.

  • The Chinese configuration table had an extra table separator in the hdds.datanode.disk.balancer.enabled row.

  • This PR updates both DiskBalancer.md and DiskBalancer.zh.md so that the documented examples and defaults match the current code and avoid suggesting invalid configuration values.

What is the link to the Apache JIRA

HDDS-15441. [DiskBalancer] Fix DiskBalancer documentation inconsistencies.

How was this patch tested?

This is a documentation-only change.

Copy link
Copy Markdown
Contributor

@sreejasahithi sreejasahithi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @slfan1989 for fixing the doc

| Option | Description | Example |
|-------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------|
| `<datanode-address>` | One or more datanode addresses as positional arguments. Addresses can be:<br>- Hostname (e.g., `DN-1`) - uses default CLIENT_RPC port (19864)<br>- Hostname with port (e.g., `DN-1:19864`)<br>- IP address (e.g., `192.168.1.10`)<br>- IP address with port (e.g., `192.168.1.10:19864`)<br>- Stdin (`-`) - reads datanode addresses from standard input, one per line | `DN-1`<br>`DN-1:19864`<br>`192.168.1.10`<br>`-` |
| `--in-service-datanodes` | It queries SCM for all IN_SERVICE datanodes and executes the command on all of them. | `--in-service-datanodes` |
Copy link
Copy Markdown
Contributor

@sreejasahithi sreejasahithi Jun 1, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For --in-service-datanodes you can add here as all IN_SERVICE and HEALTHY datanodes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants