mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-11-28 16:58:31 +01:00
The memory watch only runs mock mode, and mock mode drops pushed agent reports and skips state broadcasts without a subscriber. It can never reach the cost #2199 measured: every accepted report refreshes the unified resource registry and broadcasts state to connected dashboards. Add scripts/memory/agent_load.py, a stdlib-only driver that mints one install token per synthetic Unified Agent through the dev admin bypass, posts gzip host reports from 30 agents every 30s (6 also send Docker reports with 40 containers each), and keeps one dashboard WebSocket connected. It counts a report as failed after the agent's own 15s timeout and fails the run when reports were not accepted, so a run that missed the path cannot pass as a measurement. compare_release_memory.sh takes PULSE_FOOTPRINT_ESTATE=agents to start a real, authenticated Pulse under that load, and a new compare-agents job runs it nightly. It reports without gating (PULSE_MEMORY_GATE=0) and the issue reporter does not read it, so the new estate cannot open the memory watch issue. Five-minute runs on pulse-dev, v6.7.0 against main: all 360 reports accepted on both builds, 270 resources registered, and a CPU profile showed HandleReport -> ApplyHostReport -> replaceRegistryLocked and the websocket merge patch, the #2199 chain. Both builds used 5.7% of a core, wrote about 6.5 GB/day, and answered host reports at a 50 ms median but a 1.7-1.9 s p95 and 4 s maximum. Mock runs are unchanged apart from the legacy key path, which keeps hosts with an installed Pulse from refusing to start.