[Fleet] Split asset installation into chunks to avoid high memory pressure #189043
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.
Related to: #187969
Summary
For packages with a large number of assets, when performing reinstall or upgrade, we need to limit the number of saved objects installed in a single request.
Currently, during the package installation, before and inside the
savedObjectsImporter.import
method, a substantial number of auxiliary objects proportional to the package size are being created. Not all of these created objects are used after the installation. We can reduce memory pressure by chunking the installation requests so that unused objects can be garbage collected, leading to less peak memory consumption.The text was updated successfully, but these errors were encountered: