Skip to content

influx: keep unsent data while the database is unavailable - #408

Closed
isarrider wants to merge 2 commits into
volkszaehler:masterfrom
isarrider:feat/influx-retry-buffer
Closed

isarrider wants to merge 2 commits into
volkszaehler:masterfrom
isarrider:feat/influx-retry-buffer

Conversation

@isarrider

@isarrider isarrider commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

The InfluxDB client was used with its default write options, which drop data almost immediately when the database is down:

  • the retry buffer limit (50,000 points) is enforced in batches of limit/batch size = 10 batches. With one batch per 1s flush, that is only ~10s of data
  • batches expire after 3 minutes (MaxRetryTime)
  • batches are discarded after 5 retries

Add an influx-buffer option (default 1h) and size the retry buffer, expiry and retry count from it. Cap the retry backoff at 30s so the backlog is written soon after the database is back. 0 disables retries.

🤖 Generated with Claude Code

@isarrider
isarrider force-pushed the feat/influx-retry-buffer branch from 6127d70 to 05f86ef Compare October 26, 2026 15:34
isarrider and others added 2 commits October 26, 2026 17:06
The InfluxDB client was used with its default write options, which drop
data almost immediately when the database is down:

- the retry buffer limit (50,000 points) is enforced in batches of
  limit/batch size = 10 batches. With one batch per 1s flush, that is
  only ~10s of data
- batches expire after 3 minutes (MaxRetryTime)
- batches are discarded after 5 retries

Add an influx-buffer option (default 1h) and size the retry buffer,
expiry and retry count from it. Cap the retry backoff at 30s so the
backlog is written soon after the database is back. 0 disables retries.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01D3FK111BpSpYmto2BsT3Ea
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01D3FK111BpSpYmto2BsT3Ea
@isarrider

Copy link
Copy Markdown
Contributor Author

Superseded by #413, which uses andig's implementation from #406 together with the tests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant