Skip to content

Conversation

@leeavital
Copy link

@leeavital leeavital commented May 13, 2025

This option should behave exactly as queued.max.messages.kbytes behaves except it takes into account the queued size of all topic-partition queues at once instead of imposing a per-queue limit.

The issue with a per-queue limit, is that with dynamic partition assignment the number of partitions assigned to a single worker can change dramatically. Thus saying "2000kb" queued could be between 2000kb or ~1.5 gigabytes for a 720 partition topic depending on how many partitions are assigned in an instant.

This is particularly an issue for messages which are well compressed, because the size constraint in both instances is imposed before decompression.

@leeavital leeavital changed the title Add support for multi-batch Produce request and response Add config options for max queue message kbyptes May 13, 2025
@xvandish-dd xvandish-dd force-pushed the master branch 2 times, most recently from 9ef9312 to e01a342 Compare June 26, 2025 23:24
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.

5 participants