forked from elastic/kibana
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Fleet] Avoid loading package saved objects into memory before deleti…
…ng them (elastic#188004) **Resolves: elastic#187975 ## Summary When upgrading or re-installing a package, all saved objects from a previous package are loaded into memory using `bulkResolve`. This creates unnecessary memory pressure for packages containing thousands of saved objects, like the `security_detection_engine` package. To mitigate that, we are now skipping saved object resolution for packages known to be installed in `8.x`. While testing locally on a package containing ~5000 detection rules, I observed a significant drop in memory usage, from 1.17GB to 1.05GB at peak. **Before:** ![Screenshot 2024-07-11 at 11 11 06](https://github.com/elastic/kibana/assets/1938181/e535569e-03f0-404e-9937-4867839846ae) **After:** ![Screenshot 2024-07-11 at 11 02 32](https://github.com/elastic/kibana/assets/1938181/889e6ade-9cd7-4cbc-a220-3e8bc507fba5)
- Loading branch information
Showing
2 changed files
with
67 additions
and
36 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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