Skip to content

Commit a0ee7e6

Browse files
authored
Update max message size default (#1458)
1 parent e1c548c commit a0ee7e6

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

modules/develop/pages/config-topics.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ CONFIGS
223223
KEY VALUE SOURCE
224224
cleanup.policy delete DYNAMIC_TOPIC_CONFIG
225225
compression.type producer DEFAULT_CONFIG
226-
max.message.bytes 1048576 DEFAULT_CONFIG
226+
max.message.bytes 20971520 DEFAULT_CONFIG
227227
message.timestamp.type CreateTime DEFAULT_CONFIG
228228
redpanda.datapolicy function_name: script_name: DEFAULT_CONFIG
229229
redpanda.remote.delete true DEFAULT_CONFIG

modules/reference/pages/properties/cluster-properties.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2795,7 +2795,7 @@ Time between cluster join retries in milliseconds.
27952795

27962796
=== kafka_batch_max_bytes
27972797

2798-
Maximum size of a batch processed by the server. If the batch is compressed, the limit applies to the compressed batch size.
2798+
The default maximum batch size for topics if the topic property xref:reference:properties/topic-properties.adoc[`message.max.bytes`] is not set. If the batch is compressed, the limit applies to the compressed batch size.
27992799

28002800
*Unit:* bytes
28012801

modules/reference/pages/properties/topic-properties.adoc

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -293,15 +293,19 @@ The maximum size of a message or batch of a topic. If a compression type is enab
293293

294294
If `max.message.bytes` is set to a positive value, it overrides the cluster property xref:./cluster-properties.adoc#kafka_batch_max_bytes[`kafka_batch_max_bytes`] for the topic.
295295

296+
Set an upper limit for `max.message.bytes` using the cluster property config_ref:kafka_max_message_size_upper_limit_bytes,true,properties/cluster-properties[`kafka_max_message_size_upper_limit_bytes`].
297+
296298
*Type:* integer
297299

298300
*Unit:* bytes
299301

300302
*Accepted values:* [`1`, `2147483647`]
301303

302-
*Default:* null
304+
*Default:* 1048576 (1 MiB)
303305

304-
*Related cluster property:* xref:./cluster-properties.adoc#kafka_batch_max_bytes[`kafka_batch_max_bytes`]
306+
*Related cluster properties:*
307+
- xref:./cluster-properties.adoc#kafka_batch_max_bytes[`kafka_batch_max_bytes`]
308+
- xref:./cluster-properties.adoc#kafka_max_message_size_upper_limit_bytes[`kafka_max_message_size_upper_limit_bytes`]
305309

306310
**Related topics**:
307311

0 commit comments

Comments
 (0)