Skip to content

HDDS-16182. Extend container balancer start command with auto-config - #11906

Draft
sreejasahithi wants to merge 1 commit into
apache:masterfrom
sreejasahithi:HDDS-16182
Draft

sreejasahithi wants to merge 1 commit into
apache:masterfrom
sreejasahithi:HDDS-16182

Conversation

@sreejasahithi

@sreejasahithi sreejasahithi commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

What changes were proposed in this pull request?

This PR adds --auto-config (and optional --profile) to ozone admin containerbalancer start. The command reads current datanode usage from SCM, runs the existing container balancer advisor (MEDIUM profile by default), and starts the balancer with the recommended settings. Explicit flags (for example -i, -e, size and timeout options) still apply during recommendation and at start. If the cluster is already balanced, it prints a message and does not start the balancer.

What is the link to the Apache JIRA

HDDS-16182

How was this patch tested?

Unit tests in TestContainerBalancerSubCommand for --auto-config, overrides, --profile validation, and the balanced-cluster no-start path.

Green CI : https://github.com/sreejasahithi/ozone/actions/runs/41023328534

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant