Skip to content

Add flush_threshold and flush_interval to remaining perfdata writers#10834

Draft
jschmidt-icinga wants to merge 3 commits into
masterfrom
perfdata-add-flush-thresholds
Draft

Add flush_threshold and flush_interval to remaining perfdata writers#10834
jschmidt-icinga wants to merge 3 commits into
masterfrom
perfdata-add-flush-thresholds

Conversation

@jschmidt-icinga

@jschmidt-icinga jschmidt-icinga commented Apr 30, 2026

Copy link
Copy Markdown
Contributor

This adds the flush_threshold and flush_interval options to remaining perfdata-writers, i.e. GraphiteWriter, GelfWriter, and OpenTsdbWriter. This should solve most of the performance degradation since #10668, because the overhead for one coroutine spawn per 2MiB/15s of perfdata should be negligible.

This was made as a shot-in-the-dark fix for #10825, but it would still be worthwhile for the performance improvements. I'll do a few benchmarks before we consider merging this. Maybe I'll also add a commit that reuses the coroutine in PerfdataWriterConnection, if that also yields some improvements, and make this a general perfdata performance PR.

@jschmidt-icinga jschmidt-icinga force-pushed the perfdata-add-flush-thresholds branch from e52320f to f2f0614 Compare May 28, 2026 12:30
@jschmidt-icinga jschmidt-icinga added this to the 2.17.0 milestone May 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant