fix(logging): set flush_mode: interval on vmware_loginsight buffer#157
Merged
Conversation
Default fluentd buffer flush_mode is "lazy", which uses timekey-based chunking — the operator's vmware-loginsight wrapper sets `<buffer tag,time>` with `timekey 10m`/`timekey_wait 1m`, so chunks sit on disk up to ~11 min before flushing to CFAPI. Our `flush_interval: 5s` setting was logged as ignored. Setting flush_mode: interval forces interval-based flushing with the 5s cadence we set. End-to-end latency drops from ~11 min to ~5-10s (fluent-bit flush 1s + fluentd flush 5s + CFAPI POST + index). Also adds flush_thread_count: 2 for parallel chunk POSTs — single- threaded flushing was likely the next bottleneck if any chunk stalled on a slow CFAPI response. Surfaced live: synthetic 2464-byte stdout line emitted from a fresh pod sat in the fluentd file buffer for ~5 min without reaching vcflogs (buffer file present, no flush attempts in fluentd log). Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
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.
Hotfix #4 for the logging migration. Default fluentd flush_mode is lazy → uses timekey 10m → flush_interval ignored. Sets explicit interval mode so chunks flush every 5s instead of sitting on disk for ~11 min.