Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

capacity-manila: refactor Scrape() to separate computations per AZ #462

Merged
merged 2 commits into from
May 17, 2024

Conversation

majewsky
Copy link
Contributor

This is a refactor of the "manila" capacity plugin. After its rewrite to AZ awareness last year, I never really cleaned up the implementation, so there is a bit of a weird structure where capacity for all AZs is computed in the same function even though the function cleanly factors into separate computations per AZ.

Checklist:

  • If this PR is about a plugin, I tested the plugin against an OpenStack cluster.
  • I updated the documentation to describe the semantical or interface changes I introduced.

@majewsky majewsky changed the title Capacity manila refactor capacity-manila: refactor Scrape() to separate computations per AZ May 17, 2024
…parately

This does not change the actual numbers that come out. But by handling
each AZ entirely separately as soon as possible, the next rewrite will
be simpler.
@coveralls
Copy link

Coverage Status

coverage: 79.489%. remained the same
when pulling 159cec5 on capacity-manila-refactor
into 95b8a7c on master.

@majewsky majewsky merged commit 5eb1df6 into master May 17, 2024
7 checks passed
@majewsky majewsky deleted the capacity-manila-refactor branch May 17, 2024 13:28
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.

None yet

3 participants