Skip to content

[Fleet] Split asset installation into chunks to avoid high memory pressure #189043

@xcrzx

Description

@xcrzx

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.

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions