Skip to content

fix(sink): set the producer batching delay once - #166

Merged
catinspace-au merged 1 commit into
mainfrom
fix/producer-linger-alias
Nov 15, 2026
Merged

catinspace-au merged 1 commit into
mainfrom
fix/producer-linger-alias

Conversation

@catinspace-au

Copy link
Copy Markdown
Contributor

Vector writes batch.timeout_secs as queue.buffering.max.ms. The production profile writes linger.ms. librdkafka reads both as one setting. rdkafka applies a client's options in hash order.

Over 30 starts of Vector 0.61.0 on the generated sink, 13 gave 100 ms and 17 gave 1000 ms.

Vector writes queue.buffering.max.ms whenever a batch block is present. The generator moves a delay named by any librdkafka layer into batch.timeout_secs and drops both spellings from librdkafka_options. The highest layer that names the delay wins. With this change, all 30 starts gave 100 ms.

On the bus transport, sink.batch.timeout_secs is ignored when a layer sets the delay. The supervisor warns when sink.batch.timeout_secs is not 1.

Fix four comments and messages that did not match the code:

  • the filebeat pipeline header, which called the file verbatim and byte-identical
  • the Helm key in the disk buffer warning
  • the metric name in the scrape failure comment
  • the count of other Rust apps in the deployment comment

Vector writes batch.timeout_secs as queue.buffering.max.ms. The production profile writes linger.ms. librdkafka reads both as one setting. rdkafka applies a client's options in hash order.

Over 30 starts of Vector 0.61.0 on the generated sink, 13 gave 100 ms and 17 gave 1000 ms.

Vector writes queue.buffering.max.ms whenever a batch block is present. The generator moves a delay named by any librdkafka layer into batch.timeout_secs and drops both spellings from librdkafka_options. The highest layer that names the delay wins. With this change, all 30 starts gave 100 ms.

On the bus transport, sink.batch.timeout_secs is ignored when a layer sets the delay. The supervisor warns when sink.batch.timeout_secs is not 1.

Fix four comments and messages that did not match the code:

- the filebeat pipeline header, which called the file verbatim and byte-identical
- the Helm key in the disk buffer warning
- the metric name in the scrape failure comment
- the count of other Rust apps in the deployment comment
@catinspace-au
catinspace-au merged commit 0a80701 into main Nov 15, 2026
23 checks passed
@catinspace-au
catinspace-au deleted the fix/producer-linger-alias branch November 15, 2026 19:21
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