Optimizations for controller memory usage#907
Merged
mergify[bot] merged 5 commits intocsi-addons:mainfrom Dec 2, 2025
Merged
Conversation
76eac37 to
ae4b739
Compare
Member
|
@black-dragon74 can you please share the result of the memory optimization after this change? |
ae4b739 to
7c168c2
Compare
5c4f7e6 to
58044be
Compare
Member
Author
TestingI was able to run initial test with the new PVC reconciler. Created 100 encrypted PVCs with 100 deployments, 1:1 mapped. Old reconciler stats: New reconciler stats: The following operations were performed: Here is a video with the tests. |
Rakshith-R
reviewed
Dec 2, 2025
Rakshith-R
reviewed
Dec 2, 2025
Madhu-1
reviewed
Dec 2, 2025
This patch moves the variables and functions common across controllers into its own `utils` package. The related tests have been moved as well. Signed-off-by: Niraj Yadav <niryadav@redhat.com>
This patch adds a new controller for PVC objects which differs from existing controller in the following main ways: - Only supports annotations on StorageClasses - Sets us a silent watch on PV objects to optimize lookups. - Uses deterministic naming for child resources to avoid manual house keeping. Signed-off-by: Niraj Yadav <niryadav@redhat.com>
when SchedulePrecedence is set to `StorageClass` Signed-off-by: Niraj Yadav <niryadav@redhat.com>
This patch adds a silent watch on VolumeAttachment objects to avoid unexpected memory consumption due to `List` calls. It is okay to setup a watch in two places as the Informer is shared and managed by the Manager. Signed-off-by: Niraj Yadav <niryadav@redhat.com>
d2e989e to
3b124c3
Compare
Member
Author
|
The tracker for shim removal (assigned to me): #918 |
This patch adds a shim layer that is responsible for cleaning up the old resources so that we do not have two CronJobs created for the same underlying PVC. Signed-off-by: Niraj Yadav <niryadav@redhat.com>
3b124c3 to
0b93f39
Compare
Rakshith-R
approved these changes
Dec 2, 2025
Madhu-1
approved these changes
Dec 2, 2025
Member
|
@Mergifyio queue |
Merge Queue Status
✅ The pull request has been merged This pull request spent 1 hour 28 minutes 39 seconds in the queue, including 1 hour 28 minutes 26 seconds running CI. Required conditions to merge
|
11 tasks
✅ The pull request has been merged automaticallyDetailsThe pull request has been merged automatically at 40a8a6c |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR aims to optimize memory consumption and allocation for csi-addons controller. This goal is achieved mainly by:
schedule-precedenceis set tostorageclass.controller/utilspackage.Closes: #815