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

autoscaler: update storageautoscaler design doc #3105

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

parth-gr
Copy link
Member

@parth-gr parth-gr commented Mar 26, 2025

Currrently the controller was dependednt on reading cr status, update the design so controller to not depend on cr status

@parth-gr parth-gr force-pushed the update-autoscaler-design branch from 06ec85a to 5ba07df Compare March 26, 2025 07:41
@parth-gr
Copy link
Member Author

/assign @travisn @BlaineEXE @leelavg @nb-ohad

Copy link
Contributor

openshift-ci bot commented Mar 26, 2025

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: parth-gr
Once this PR has been reviewed and has the lgtm label, please ask for approval from blaineexe. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@parth-gr parth-gr requested a review from travisn March 26, 2025 14:41
@parth-gr parth-gr force-pushed the update-autoscaler-design branch from f7f9c26 to 80f27b4 Compare March 26, 2025 14:41

3) Check if the expansion is in progress:

1) Load the actualOsdCount and actualOsdSize from the syncMap.
Copy link
Member Author

@parth-gr parth-gr Mar 26, 2025

Choose a reason for hiding this comment

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

We can even calculate the actualOsdCount and actualOsdSize in the controller reconcile by querying prometehus,
And then we don't want to query those values from the scraper and update actual values in the syncMap.

cc @travisn @nb-ohad @leelavg for more thoughts.

Copy link
Contributor

Choose a reason for hiding this comment

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

Agreed, seems like the scraper has no reason to query the actual osd count and size. All the scraper is concerned with, is whether it appears the cluster is getting full.

So it seems to me the controller should just directly query prometheus for the osd count and size.

@parth-gr parth-gr force-pushed the update-autoscaler-design branch from 80f27b4 to 6323f07 Compare March 27, 2025 07:55
@parth-gr parth-gr requested a review from BlaineEXE March 27, 2025 07:56
@parth-gr parth-gr force-pushed the update-autoscaler-design branch from 6323f07 to 1ae5b28 Compare March 27, 2025 07:56
Currrently the controller was dependent on reading cr status,
update the controller to not depend on cr status

Signed-off-by: parth-gr <[email protected]>
@parth-gr parth-gr force-pushed the update-autoscaler-design branch from 1ae5b28 to 7592e48 Compare April 1, 2025 14:53
Copy link
Contributor

openshift-ci bot commented Apr 1, 2025

@parth-gr: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/ocs-operator-bundle-e2e-aws 7592e48 link true /test ocs-operator-bundle-e2e-aws

Full PR test history. Your PR dashboard.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

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