Repository navigation
docs(ups): NUT's driver retries for 14 seconds, riding out the card's stalls - #1702
Merged
Merged
Conversation
… stalls The data stale spells were the UPS card going silent for 2-8 s; NUT's defaults gave up at about 6 s. Records the snmp_timeout/snmp_retries arguments applied on morpheus on 2026-11-23 in the runbook, observability and the changelog. Refs #1503. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
There was a problem hiding this comment.
🟡 Changes recommended
The documentation conflates SNMP request timeouts with scrape failures and makes an unsupported stale-detection delay claim that needs correction.
2 open issues
What changed in this PR
This docs-only PR records the live NUT driver retry change on morpheus, intended to tolerate brief UPS card SNMP stalls without changing shutdown configuration.
Changes:
- Adds
snmp_timeout = 2andsnmp_retries = 6to the runbook’s configuration and expected output. - Explains the observed stalls and links the monitoring documentation to that explanation.
- Records the deployment and first-hour observations, with longer-term verification still pending.
| File | Description |
|---|---|
| docs/runbooks/shut-down-on-the-ups.md | Adds retry settings and explains their purpose. |
| docs/observability.md | Updates the stale-data explanation and links to the runbook. |
| docs/changelog.md | Records the live change, capture results, and initial observations. |
Review effort: Balanced
Gerrrt
enabled auto-merge (squash)
November 24, 2026 03:50
…retried, not failed Review on #1702: upsd's MAXAGE counts from the driver's last message, so the retry budget does not set an outage-detection delay, and the exporter's 5 s is a per-request timeout inside a 45 s scrape. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Nov 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

What changed
Records the NUT driver change made on
morpheusat 18:36 local on 2026-11-23: Extra Arguments to driver gainedsnmp_timeout = 2andsnmp_retries = 6.shut-down-on-the-ups.md: the two lines in step 1.3's argument list and in the expectedups.confoutput, and a new section, Why the driver retries for 14 seconds.observability.md: the data stale paragraph says what the spells are and links to that section.Why
The data stale spells come from the UPS card. A 45-minute capture counted 93 stalls in which the card answered nothing for 2 to 8 seconds; ICMP to it lost nothing. NUT's defaults give up at about 6 seconds, and only the two stalls longer than that, 7.1 and 8.2 seconds, became spells, each logged the second its stall crossed 6 seconds. A 14-second retry budget rides out every stall measured and stays inside
upsd's 15-secondMAXAGE, so a card that is really gone is still marked stale, about 8 seconds later than before.Blast radius
secrets/*.sops.yamlDocs only. The box change is already live; it restarted the driver,
upsdandupsmononce at 18:36.Verification
check_docs.pyand./scripts/lint.shpassupscreadsdriver.parameter.snmp_timeout: 2,driver.parameter.snmp_retries: 6,ups.status: OL. The first hour had no spell in Loki orsystem.logwhile the exporter timed out on 10 scrapes of the card, so the stalls continue. 13 of the 49 hours before also had none, so this stays open until a full day is clean.observability.mdand the changelogRefs #1503.
🤖 Generated with Claude Code