[Fleet] All package SOs are being read into memory during package upgrade or force installation #187975
Closed
Labels
8.16 candidate
Feature:Prebuilt Detection Rules
Security Solution Prebuilt Detection Rules area
Team:Detection Rule Management
Security Detection Rule Management Team
Team:Detections and Resp
Security Detection Response Team
Team:Fleet
Team label for Observability Data Collection Fleet team
Team: SecuritySolution
Security Solutions Team working on SIEM, Endpoint, Timeline, Resolver, etc.
technical debt
Improvement of the software architecture and operational architecture
Related to: #187969
Summary
When upgrading or re-installing a package, all saved objects from a previous package are being loaded into memory using the
bulkResolve
method of the SO client:kibana/x-pack/plugins/fleet/server/services/epm/packages/remove.ts
Lines 123 to 126 in 045aafc
This creates unnecessary memory pressure for packages containing thousands of saved objects, like the
security_detection_engine
package.We can mitigate that by skipping the resolution altogether for all packages installed in Kibana
8.x
. The resolution is only needed for package upgrades from7.x
to8.x
.The text was updated successfully, but these errors were encountered: