Container P99 Working-Set Memory, OOMKill Buffer & Request Reclaimer
Compares container_memory_working_set_bytes P99 peaks against inflated Kubernetes memory requests locally, reclaiming stranded cluster RAM while preserving a strict 25% OOMKill safety margin.
Governed Workflow Steps (3)
- 1. Ingest 30-Day Container Working-Set
Ingest 30-Day Container Working-Set P99 & Historical OOMKill Events: consume [podMemMetrics] via ingest.local_cadvisor_mem_loader to emit [memProfile]. Verify invariant: memProfile.workloads >= 1.
- 2. Compute Safe Right-Sized Memory
Compute Safe Right-Sized Memory Request/Limit & Reclaimed Cluster GiB: consume [memProfile] via vault.vault-k8s-vpa-oomkill-memory-headroom-rightsizer to emit [reclaimedGiB, monthlyNodeSavedCents, oomSafetyBufferPct]. Verify invariant: reclaimedGiB > 0 && oomSafetyBufferPct >= 25.
- 3. Emit VPA Recommendation Patch & QoS
Emit VPA Recommendation Patch & QoS Guaranteed/Burstable Matrix: consume [reclaimedGiB, monthlyNodeSavedCents] via artifact.local_vpa_patch_emitter to emit [vpaManifestMd]. Verify invariant: vpaManifestMd.length > 80.