Skip to content

Conversation

@Gargi-jais11
Copy link
Contributor

What changes were proposed in this pull request?

Currently, (scmUsed / capacity) is used to calculate the disk utilization. When reserved space for non-ozone usage is defined, scmUsed cannot reflect the data used by non-ozone usage, while free space can.

So change to use formula ( capacity - free ) / capacity. This is also consist with the formula used by Container balancer.

What is the link to the Apache JIRA

https://issues.apache.org/jira/browse/HDDS-12678

How was this patch tested?

Existing test cases.

@Gargi-jais11 Gargi-jais11 marked this pull request as ready for review April 14, 2025 08:42
@errose28
Copy link
Contributor

cc @smengcl @siddhantsangwan who have been looking at volume usage handling.

@Gargi-jais11 Gargi-jais11 requested a review from ChenSammi April 16, 2025 04:00
@Gargi-jais11 Gargi-jais11 requested a review from ChenSammi April 16, 2025 08:11
Copy link
Contributor

@ChenSammi ChenSammi left a comment

Choose a reason for hiding this comment

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

Thanks @Gargi-jais11 .

@ChenSammi ChenSammi merged commit 03c9069 into apache:HDDS-5713 Apr 21, 2025
43 checks passed
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.

3 participants