Skip to content

Add test coverage for flush on fluentbit termination#3

Merged
solsson merged 1 commit into
mainfrom
write-operations-cost-vs-read-lag
Mar 10, 2026
Merged

Add test coverage for flush on fluentbit termination#3
solsson merged 1 commit into
mainfrom
write-operations-cost-vs-read-lag

Conversation

@solsson
Copy link
Copy Markdown
Contributor

@solsson solsson commented Mar 4, 2026

Efficient flush is essential for raising total_file_size and upload_timeout to save on blob store operations cost, that is typically per request. With larger buffers we must know that we can flush them given a graceful termination timeout, which for https://kubernetes.io/docs/concepts/cluster-administration/node-shutdown/#graceful-node-shutdown is typically ~20s.

Creates 25 pods (50 S3 buffers with 2 outputs), kills fluent-bit with
grace-period=15, and verifies all markers appear in S3. Sequential
flush would need ~50-100s, so completion within 15s proves concurrency.

Validates each pod marker individually rather than counting grep lines,
avoiding false positives from duplicate log reads.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@solsson solsson changed the title WIP evaluate log forwarding and storage cost Add test coverage for flush on fluentbit termination Mar 10, 2026
@solsson solsson merged commit fbc5a9d into main Mar 10, 2026
1 check passed
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