Stop the adaptive polling guide promising a retry after 30 minutes. Use the saved Scheduler Health timestamps to distinguish a past failure from a later successful poll, without retrying or changing a connection. Change-source: pulse-maintainer
4.7 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 within the new run. The restart can reset the recorded results and counters. Use the pre-change baseline to identify which connections and readings to expect, not as the first capture of the new run. Check breaker state and allow for the configured intervals and retry delays. A dead-letter entry can remain after a later poll succeeds. Confirm that the last-success times advance and the expected dashboard data refreshes. A new success with a partial error is not a complete read.
A snapshot's updatedAt is its collection time, not a successful provider
poll. A small queue can leave out overdue work a worker has already taken.
See where a poll stopped progressing
before interpreting a flat result or changing the cadence again. 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.