Skip to content

Commit cc43f45

Browse files
committed
Change default queue.buffering.max.kbytes and queued.max.message.kbytes to 1GB (#1304)
1 parent f6f93fa commit cc43f45

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

CONFIGURATION.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ enable.auto.commit | C | true, false | true
7878
auto.commit.interval.ms | C | 0 .. 86400000 | 5000 | The frequency in milliseconds that the consumer offsets are committed (written) to offset storage. (0 = disable). This setting is used by the high-level consumer. <br>*Type: integer*
7979
enable.auto.offset.store | C | true, false | true | Automatically store offset of last message provided to application. <br>*Type: boolean*
8080
queued.min.messages | C | 1 .. 10000000 | 100000 | Minimum number of messages per topic+partition librdkafka tries to maintain in the local consumer queue. <br>*Type: integer*
81-
queued.max.messages.kbytes | C | 1 .. 1000000000 | 1000000 | Maximum number of kilobytes per topic+partition in the local consumer queue. This value may be overshot by fetch.message.max.bytes. This property has higher priority than queued.min.messages. <br>*Type: integer*
81+
queued.max.messages.kbytes | C | 1 .. 2097151 | 1048576 | Maximum number of kilobytes per topic+partition in the local consumer queue. This value may be overshot by fetch.message.max.bytes. This property has higher priority than queued.min.messages. <br>*Type: integer*
8282
fetch.wait.max.ms | C | 0 .. 300000 | 100 | Maximum time the broker may wait to fill the response with fetch.min.bytes. <br>*Type: integer*
8383
fetch.message.max.bytes | C | 1 .. 1000000000 | 1048576 | Initial maximum number of bytes per topic+partition to request when fetching messages from the broker. If the client encounters a message larger than this value it will gradually try to increase it until the entire message can be fetched. <br>*Type: integer*
8484
max.partition.fetch.bytes | C | | | Alias for `fetch.message.max.bytes`
@@ -91,7 +91,7 @@ offset_commit_cb | C | |
9191
enable.partition.eof | C | true, false | true | Emit RD_KAFKA_RESP_ERR__PARTITION_EOF event whenever the consumer reaches the end of a partition. <br>*Type: boolean*
9292
check.crcs | C | true, false | false | Verify CRC32 of consumed messages, ensuring no on-the-wire or on-disk corruption to the messages occurred. This check comes at slightly increased CPU usage. <br>*Type: boolean*
9393
queue.buffering.max.messages | P | 1 .. 10000000 | 100000 | Maximum number of messages allowed on the producer queue. <br>*Type: integer*
94-
queue.buffering.max.kbytes | P | 1 .. 2097151 | 4000000 | Maximum total message size sum allowed on the producer queue. This property has higher priority than queue.buffering.max.messages. <br>*Type: integer*
94+
queue.buffering.max.kbytes | P | 1 .. 2097151 | 1048576 | Maximum total message size sum allowed on the producer queue. This property has higher priority than queue.buffering.max.messages. <br>*Type: integer*
9595
queue.buffering.max.ms | P | 0 .. 900000 | 0 | Delay in milliseconds to wait for messages in the producer queue to accumulate before constructing message batches (MessageSets) to transmit to brokers. A higher value allows larger and more effective (less overhead, improved compression) batches of messages to accumulate at the expense of increased message delivery latency. <br>*Type: integer*
9696
linger.ms | P | | | Alias for `queue.buffering.max.ms`
9797
message.send.max.retries | P | 0 .. 10000000 | 2 | How many times to retry sending a failing MessageSet. **Note:** retrying may cause reordering. <br>*Type: integer*

src/rdkafka_conf.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -617,7 +617,7 @@ static const struct rd_kafka_property rd_kafka_properties[] = {
617617
"local consumer queue. "
618618
"This value may be overshot by fetch.message.max.bytes. "
619619
"This property has higher priority than queued.min.messages.",
620-
1, 1000000000, 1000000 /* 1 Gig */ },
620+
1, INT_MAX/1024, 0x100000/*1GB*/ },
621621
{ _RK_GLOBAL|_RK_CONSUMER, "fetch.wait.max.ms", _RK_C_INT,
622622
_RK(fetch_wait_max_ms),
623623
"Maximum time the broker may wait to fill the response "
@@ -688,7 +688,7 @@ static const struct rd_kafka_property rd_kafka_properties[] = {
688688
_RK(queue_buffering_max_kbytes),
689689
"Maximum total message size sum allowed on the producer queue. "
690690
"This property has higher priority than queue.buffering.max.messages.",
691-
1, INT_MAX/1024, 4000000 },
691+
1, INT_MAX/1024, 0x100000/*1GB*/ },
692692
{ _RK_GLOBAL|_RK_PRODUCER, "queue.buffering.max.ms", _RK_C_INT,
693693
_RK(buffering_max_ms),
694694
"Delay in milliseconds to wait for messages in the producer queue "

0 commit comments

Comments
 (0)