mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-11-28 16:58:31 +01:00
Address seven memory-ceiling and hot-path allocation bugs uncovered while investigating #1803 on Proxmox VE LXC + PBS estates: 1. pkg/server: read /proc/meminfo MemTotal alongside cgroup v1/v2 limits so Proxmox VE LXC containers (where memory.max sits above the /ns cgroup root and reads "max") still derive an accurate GOMEMLIMIT via lxcfs. 2. internal/alerts: avoid per-row Alert.Clone() during HistoryManager identity lookups/updates and trim Evidence on aged resolved alerts beyond the recently-resolved window. 3. internal/recovery/store: skip full PBS table scans in UpsertPoints when no point needs historical Proxmox PBS identity resolution, filter by timestamp before unmarshaling subject_ref_json, and replace unbounded looseCandidates slices with O(1) ambiguity tracking. 4. internal/recovery/store: stream RefreshProtectionPostures and listRequestedProtectionPostures one subject_key group at a time, skip fetching/unmarshaling details_json and repository_ref_json when provider_scope is already stored, and project only the evidence fields read during posture derivation. 5. internal/monitoring: allow unrelated full-inventory recovery batches (such as PBS snapshots) to coalesce past disjoint scoped batches (such as PVE guest snapshots), and zero processed batches immediately in the ingest loop. 6. internal/models: stop State.syncBackupsLocked() from deep-cloning all PVE/PBS/PMG backups into a duplicate State.Backups copy on every update. Contract-Neutral: issue-1803 internal memory-limit and allocation-churn fixes with no public-contract delta