kots icon indicating copy to clipboard operation
kots copied to clipboard

Airgap uploads can require more memory than requested

Open laverya opened this issue 4 years ago • 1 comments

Currently, we request 100Mi (with a limit of 500Mi) for kotsadm: https://github.com/replicatedhq/kots/blob/master/pkg/kotsadm/kotsadm_objects.go#L427-L436

In some situations (large images in airgap bundles in clusters under memory pressure) this results in kotsadm taking more than 100Mi of ram and being OOMkilled. This should be resolved somehow - either by setting the request equal to the limit or by improving the image decompress+push process.

laverya avatar Dec 02 '20 18:12 laverya

Is it being killed because it's exceeding the limit (500Mi), or that it's more than the request, and the cluster doesn't have enough memory?

markpundsack avatar Dec 02 '20 22:12 markpundsack