mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-02-18 00:17:39 +01:00
1.2 KiB
1.2 KiB
🚀 Adaptive Polling Rollout
Safely enable dynamic scheduling (v5+).
📋 Pre-Flight
- Snapshot Health:
curl -s -H "X-API-Token: $TOKEN" http://localhost:7655/api/monitoring/scheduler/health | jq . - Check Metrics: Ensure
pulse_monitor_poll_queue_depthis stable.
🟢 Enable
Choose one method:
- UI: Not currently exposed in the v5 UI (use CLI or env vars).
- CLI:
- systemd/LXC:
jq '.adaptivePollingEnabled=true' /etc/pulse/system.json > /tmp/system.json && sudo mv /tmp/system.json /etc/pulse/system.json - Docker/Kubernetes: edit
/data/system.jsonin the volume and restart the container/pod
- systemd/LXC:
- Env:
ADAPTIVE_POLLING_ENABLED=true(Docker/K8s).
🔍 Monitor (First 15m)
Watch for stability:
watch -n 5 'curl -s http://localhost:9091/metrics | grep pulse_monitor_poll_queue_depth'
- Success: Queue depth < 50, no permanent errors.
- Failure: High queue depth, open breakers.
↩️ Rollback
If instability occurs > 10m:
- Disable: Remove the env var override or set
adaptivePollingEnabled=falseinsystem.json. - Restart: Required if using Env/CLI overrides.
- Verify: Confirm queue drains.