Skip to content

feat: add tunable log streaming interval to reduce chunk upload API calls#3836

Draft
wolfeidau wants to merge 2 commits into
mainfrom
feat_tunable_log_chunk_uploads
Draft

feat: add tunable log streaming interval to reduce chunk upload API calls#3836
wolfeidau wants to merge 2 commits into
mainfrom
feat_tunable_log_chunk_uploads

Conversation

@wolfeidau
Copy link
Copy Markdown
Member

@wolfeidau wolfeidau commented Apr 20, 2026

Description

Adds a --log-streaming-interval flag (BUILDKITE_LOG_STREAMING_INTERVAL, default 3s) that controls how long the log streamer accumulates output before uploading a chunk. Larger intervals mean fewer, bigger chunks,
reducing API calls, improving gzip compression ratios, and lowering egress costs for agents behind proxies.

The first chunk of each job is always uploaded within 1s so the job log has visible output promptly. Set to 0 to restore the original per-poll-tick behaviour.

Context

Changes

Testing

  • Tests have run locally (with go test ./...). Buildkite employees may check this if the pipeline has run automatically.
  • Code is formatted (with go tool gofumpt -extra -w .)

Disclosures / Credits

wolfeidau and others added 2 commits April 20, 2026 16:54
…alls

Adds a --log-streaming-interval flag (BUILDKITE_LOG_STREAMING_INTERVAL,
default 3s) that controls how long the log streamer accumulates output
before uploading a chunk. Larger intervals mean fewer, bigger chunks —
reducing API calls, improving gzip compression ratios, and lowering
egress costs for agents behind proxies.

The first chunk of each job is always uploaded within 1s so the job log
has visible output promptly. Set to 0 to restore the original
per-poll-tick behaviour.
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