mirror of
https://github.com/cozystack/cozystack.git
synced 2026-12-06 23:23:23 +09:00
capmox reads the bootstrap data Secret through the controller-runtime cached client, so provisioning the first machine starts an informer over every Secret in the management cluster. On a Cozystack management cluster most of those are Helm release revisions. On a cluster with 1236 Secrets (87 MB as JSON, 706 of them Helm release revisions) the manager was OOMKilled at the 256Mi limit while provisioning a worker, with both capmox v0.7.7 and v0.9.2. The last working set before the kills was 232 MiB (v0.7.7) and 255 MiB (v0.9.2); the same manager without the Secret cache uses 19 MiB. 512Mi is twice the last measured working set. The request stays at 64Mi. The limit can come back down once capmox stops caching Secrets. Assisted-by: LLM Signed-off-by: Marian Koreniuk <moriarti@cp.if.ua>