Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build(kafka): change message.max.bytes in broker side to align with producer and consumer #5126

Merged
merged 3 commits into from
Sep 5, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions kafka/strimzi/templates/cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ spec:
default.replication.factor: {{ .Values.topic.defaultReplicationFactor }}
min.insync.replicas: {{ .Values.topic.minISR }}
inter.broker.protocol.version: {{ .Values.broker.interBrokerProtocolVersion }}
message.max.bytes: {{ .Values.broker.messageMaxBytes }}
template:
pod:
tmpDirSizeLimit: {{ .Values.broker.tmpDirSizeLimit }}
Expand Down
4 changes: 3 additions & 1 deletion kafka/strimzi/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,12 @@ broker:
tmpDirSizeLimit: 100Mi

pvcSize: 100Gi

messageMaxBytes: 1000000000

resources:
cpu: 200m
memory: 1Gi
memory: 2Gi

topic:
autoCreate: true
Expand Down
3 changes: 2 additions & 1 deletion scheduler/all-base.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,8 @@ services:
kafka:
image: "${KAFKA_IMAGE_AND_TAG}"
environment:
- KAFKA_CFG_SOCKET_REQUEST_MAX_BYTES=1000000000
- KAFKA_CFG_SOCKET_REQUEST_MAX_BYTES=${KAFKA_MESSAGE_MAX_BYTES}
- KAFKA_CFG_MESSAGE_MAX_BYTES=${KAFKA_MESSAGE_MAX_BYTES}
volumes:
- "kafka_data:/bitnami"
depends_on:
Expand Down
1 change: 0 additions & 1 deletion scheduler/all-internal.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,6 @@ services:
- KAFKA_BROKER_ID=1
- KAFKA_CFG_ZOOKEEPER_CONNECT=zookeeper:2181
- ALLOW_PLAINTEXT_LISTENER=yes
- KAFKA_CFG_MESSAGE_MAX_BYTES=1000000000
ports:
- "9092:9092"

Expand Down
2 changes: 2 additions & 0 deletions scheduler/env.all
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,5 @@ HODOMETER_METRICS_LEVEL=feature
HODOMETER_LOG_LEVEL=info
HODOMETER_RECEIVER_RECORD_LEVEL=all
HODOMETER_RECEIVER_LOG_LEVEL=info

KAFKA_MESSAGE_MAX_BYTES=1000000000