Treat enabled as the adaptive timing flag, not a test of whether polling is running. Add a local comparison of recorded results that distinguishes completed polls, continuing errors and no new result without sharing the raw snapshot or restarting Pulse. Refs: #5089 Contract-Neutral: Documents existing poll and scheduler-health behavior without changing scheduling, response fields, access, or alert evaluation. Change-source: pulse-maintainer
4.2 KiB
🚀 Adaptive Polling Rollout
Adaptive polling is disabled by default. Change it during a maintenance window, not as an unmeasured remedy for high CPU, excessive writes or a stalled backup. A Pulse restart interrupts monitoring and notifications until it is running again.
📋 Pre-Flight
- Record the running version, fleet size, current polling settings and whether
Pulse dashboards are open. Save the existing environment overrides and
adaptivePollingEnabledvalue so rollback restores the same configuration. - Take one scheduler health snapshot. Use a signed-in browser or the private header-file recipe there. Keep the response local: instance names, addresses and error text can be sensitive.
- Establish each instance's last successful poll and current errors before changing settings. A small or empty queue alone does not prove healthy polls; scheduled tasks may be waiting for their next run, and polling may be disabled.
🟢 Enable
There is no dedicated UI toggle. Choose one configuration source:
- Managed environment: Set
ADAPTIVE_POLLING_ENABLED=truein the existing service, Compose or Kubernetes deployment configuration, then restart or redeploy Pulse using that deployment's normal procedure. - Persistent settings: In the instance's actual data directory, edit only
adaptivePollingEnabledinsystem.json, preserving its other settings, ownership and permissions, then restart Pulse. Back up the original privately first; this file can contain secrets. Do not replace it through a shared/tmp/system.jsonor replace the whole document with a single property.
An explicit environment value overrides system.json. Do not change both
sources at once or assume a file edit took effect while an override remains.
See configuration for intervals.
After restart, the health response's enabled field confirms the effective
adaptive timing flag, not whether polls are running or successful. Fixed-interval
polls can still run when the flag is false.
🔍 Monitor (First 15m)
For a responsive install, take another snapshot after about 1, 5 and 15 minutes;
run the local jq queries against each saved file, not a separate HTTP request per
query. Stop collection if the system becomes unresponsive. Do not add an
unbounded watch loop, enable Debug or expose a metrics port for this check.
Compare per-connection poll results
with the baseline, including whether the latest poll error advances. Check
breaker state and dead-letter tasks as well. Last-success times should advance
in line with the effective polling intervals. Check that the affected dashboard
data still refreshes. A snapshot's updatedAt is its collection time, not a
successful provider poll. There is no fleet-independent queue-depth success
threshold, and an open breaker is a backoff state, not proof of a new regression.
If using an already configured Prometheus scrape, compare queue and error metrics and the age of the last recorded success for the same expected connections and nodes. A quiet error counter or a flat staleness gauge can also mean no poll finished. Missing metrics or a failed read are unavailable evidence, not zero errors. Do not prolong a failure merely to finish the 15-minute observation.
↩️ Rollback
If freshness deteriorates or failures rise after the change:
- Restore the saved environment and persistent settings. For an originally
disabled install, an explicit
ADAPTIVE_POLLING_ENABLED=falseoverride disables the flag; merely removingtruecan uncover a persistedtruevalue. - Restart or redeploy through the same procedure. This pauses monitoring again.
- Take a fresh snapshot to confirm the effective flag, then verify successful
polls and dashboard freshness against the baseline. An empty queue or
enabled: falsealone is not recovery evidence.
Keep the versions, times, changed settings and relevant redacted observations
when reporting a problem. Do not share the header file, raw health response,
deployment environment or system.json.