Skip to content

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

Open
slfan1989 wants to merge 4 commits into
apache:masterfrom
slfan1989:HDDS-15441
Open

HDDS-15441. [DiskBalancer] Fix DiskBalancer documentation inconsistencies.#10399
slfan1989 wants to merge 4 commits 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

@@ -158,9 +158,9 @@ ozone admin datanode diskbalancer report [<datanode-address> ...] [--in-service-
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.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

+1

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@sreejasahithi @Gargi-jais11 Thanks for the suggestion. I updated the --in-service-datanodes description to mention all IN_SERVICE and HEALTHY datanodes, and made the same update in the related examples and Chinese documentation.

@Gargi-jais11 Gargi-jais11 self-requested a review June 1, 2026 06:34
Copy link
Copy Markdown
Contributor

@Gargi-jais11 Gargi-jais11 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 catching these inconsistencies.
Please find inlined comments.

Comment thread hadoop-hdds/docs/content/feature/DiskBalancer.md Outdated
| `hdds.datanode.disk.balancer.container.choosing.policy` | `org.apache.hadoop.ozone.container.diskbalancer.policy.DefaultContainerChoosingPolicy` | 用于选择源/目标卷以及要移动的容器的策略。 |
| `hdds.datanode.disk.balancer.service.timeout` | `300s` | Datanode DiskBalancer 服务操作超时。 |
| `hdds.datanode.disk.balancer.should.run.default` | `false` | 如果平衡器无法读取其持久配置,则该值决定服务是否应默认运行。 |

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I believe we need a newline at end of a file?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Thanks for pointing it out! I verified the Chinese documentation now ends with a newline.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@slfan1989 thanks for adding the newline, but the same applies to the English doc as well

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.

5 participants