Skip to content

Commit 9a386af

Browse files
authored
Merge pull request #3150 from rockwotj/dft-mmms
franz: use IEC units instead of SI
2 parents abb7725 + dd20ec0 commit 9a386af

File tree

8 files changed

+27
-26
lines changed

8 files changed

+27
-26
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ All notable changes to this project will be documented in this file.
1919
- Field `avro_raw_json` was deprecated in favor of `avro.raw_unions` for processor `schema_registry_decode`. (@rockwotj)
2020
- The `snowpipe_streaming` output now has better error handling for authentication failures when uploading to cloud storage. (@rockwotj)
2121
- Field `schema_evolution.new_column_type_mapping` for `snowpipe_streaming` is deprecated and can be replaced with `schema_evolution.processors`. (@rockwotj)
22+
- Increased the default values for `max_message_bytes` and `broker_write_max_bytes` by using IEC units instead of SI units. This better matches defaults in Redpanda and Kafka. (@rockwotj)
2223

2324
## 4.45.1 - 2025-01-17
2425

docs/modules/components/pages/outputs/kafka_franz.adoc

+4-4
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,8 @@ output:
9393
idempotent_write: true
9494
compression: "" # No default (optional)
9595
timeout: 10s
96-
max_message_bytes: 1MB
97-
broker_write_max_bytes: 100MB
96+
max_message_bytes: 1MiB
97+
broker_write_max_bytes: 100MiB
9898
```
9999
100100
--
@@ -767,7 +767,7 @@ The maximum space in bytes than an individual message may take, messages larger
767767
768768
*Type*: `string`
769769
770-
*Default*: `"1MB"`
770+
*Default*: `"1MiB"`
771771
772772
```yml
773773
# Examples
@@ -784,7 +784,7 @@ The upper bound for the number of bytes written to a broker connection in a sing
784784
785785
*Type*: `string`
786786
787-
*Default*: `"100MB"`
787+
*Default*: `"100MiB"`
788788
789789
```yml
790790
# Examples

docs/modules/components/pages/outputs/ockam_kafka.adoc

+4-4
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,8 @@ output:
9191
idempotent_write: true
9292
compression: "" # No default (optional)
9393
timeout: 10s
94-
max_message_bytes: 1MB
95-
broker_write_max_bytes: 100MB
94+
max_message_bytes: 1MiB
95+
broker_write_max_bytes: 100MiB
9696
topic: "" # No default (required)
9797
key: "" # No default (optional)
9898
partition: ${! meta("partition") } # No default (optional)
@@ -479,7 +479,7 @@ The maximum space in bytes than an individual message may take, messages larger
479479
480480
*Type*: `string`
481481
482-
*Default*: `"1MB"`
482+
*Default*: `"1MiB"`
483483
484484
```yml
485485
# Examples
@@ -496,7 +496,7 @@ The upper bound for the number of bytes written to a broker connection in a sing
496496
497497
*Type*: `string`
498498
499-
*Default*: `"100MB"`
499+
*Default*: `"100MiB"`
500500
501501
```yml
502502
# Examples

docs/modules/components/pages/outputs/redpanda.adoc

+4-4
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@ output:
8080
idempotent_write: true
8181
compression: "" # No default (optional)
8282
timeout: 10s
83-
max_message_bytes: 1MB
84-
broker_write_max_bytes: 100MB
83+
max_message_bytes: 1MiB
84+
broker_write_max_bytes: 100MiB
8585
```
8686
8787
--
@@ -650,7 +650,7 @@ The maximum space in bytes than an individual message may take, messages larger
650650
651651
*Type*: `string`
652652
653-
*Default*: `"1MB"`
653+
*Default*: `"1MiB"`
654654
655655
```yml
656656
# Examples
@@ -667,7 +667,7 @@ The upper bound for the number of bytes written to a broker connection in a sing
667667
668668
*Type*: `string`
669669
670-
*Default*: `"100MB"`
670+
*Default*: `"100MiB"`
671671
672672
```yml
673673
# Examples

docs/modules/components/pages/outputs/redpanda_migrator.adoc

+4-4
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,8 @@ output:
8787
idempotent_write: true
8888
compression: "" # No default (optional)
8989
timeout: 10s
90-
max_message_bytes: 1MB
91-
broker_write_max_bytes: 100MB
90+
max_message_bytes: 1MiB
91+
broker_write_max_bytes: 100MiB
9292
```
9393
9494
--
@@ -741,7 +741,7 @@ The maximum space in bytes than an individual message may take, messages larger
741741
742742
*Type*: `string`
743743
744-
*Default*: `"1MB"`
744+
*Default*: `"1MiB"`
745745
746746
```yml
747747
# Examples
@@ -758,7 +758,7 @@ The upper bound for the number of bytes written to a broker connection in a sing
758758
759759
*Type*: `string`
760760
761-
*Default*: `"100MB"`
761+
*Default*: `"100MiB"`
762762
763763
```yml
764764
# Examples

docs/modules/components/pages/outputs/redpanda_migrator_offsets.adoc

+4-4
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@ output:
7474
offset_commit_timestamp: ${! @kafka_offset_commit_timestamp }
7575
offset_metadata: ${! @kafka_offset_metadata }
7676
timeout: 10s
77-
max_message_bytes: 1MB
78-
broker_write_max_bytes: 100MB
77+
max_message_bytes: 1MiB
78+
broker_write_max_bytes: 100MiB
7979
max_retries: 0
8080
backoff:
8181
initial_interval: 1s
@@ -542,7 +542,7 @@ The maximum space in bytes than an individual message may take, messages larger
542542
543543
*Type*: `string`
544544
545-
*Default*: `"1MB"`
545+
*Default*: `"1MiB"`
546546
547547
```yml
548548
# Examples
@@ -559,7 +559,7 @@ The upper bound for the number of bytes written to a broker connection in a sing
559559
560560
*Type*: `string`
561561
562-
*Default*: `"100MB"`
562+
*Default*: `"100MiB"`
563563
564564
```yml
565565
# Examples

docs/modules/components/pages/redpanda/about.adoc

+4-4
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ redpanda:
6060
idempotent_write: true
6161
compression: "" # No default (optional)
6262
timeout: 10s
63-
max_message_bytes: 1MB
64-
broker_write_max_bytes: 100MB
63+
max_message_bytes: 1MiB
64+
broker_write_max_bytes: 100MiB
6565
```
6666
--
6767
======
@@ -573,7 +573,7 @@ The maximum space in bytes than an individual message may take, messages larger
573573

574574
*Type*: `string`
575575

576-
*Default*: `"1MB"`
576+
*Default*: `"1MiB"`
577577

578578
```yml
579579
# Examples
@@ -590,7 +590,7 @@ The upper bound for the number of bytes written to a broker connection in a sing
590590

591591
*Type*: `string`
592592

593-
*Default*: `"100MB"`
593+
*Default*: `"100MiB"`
594594

595595
```yml
596596
# Examples

internal/impl/kafka/franz_writer.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,13 @@ func FranzProducerLimitsFields() []*service.ConfigField {
5353
service.NewStringField(kfwFieldMaxMessageBytes).
5454
Description("The maximum space in bytes than an individual message may take, messages larger than this value will be rejected. This field corresponds to Kafka's `max.message.bytes`.").
5555
Advanced().
56-
Default("1MB").
56+
Default("1MiB").
5757
Example("100MB").
5858
Example("50mib"),
5959
service.NewStringField(kfwFieldBrokerWriteMaxBytes).
6060
Description("The upper bound for the number of bytes written to a broker connection in a single write. This field corresponds to Kafka's `socket.request.max.bytes`.").
6161
Advanced().
62-
Default("100MB").
62+
Default("100MiB").
6363
Example("128MB").
6464
Example("50mib"),
6565
}

0 commit comments

Comments
 (0)