Set Kafka max heap size
This commit is contained in:
parent
bd3f1ecd53
commit
7abf9a00cb
|
@ -123,6 +123,7 @@ services:
|
||||||
KAFKA_INTER_BROKER_LISTENER_NAME: PLAINTEXT
|
KAFKA_INTER_BROKER_LISTENER_NAME: PLAINTEXT
|
||||||
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
|
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
|
||||||
ALLOW_PLAINTEXT_LISTENER: yes
|
ALLOW_PLAINTEXT_LISTENER: yes
|
||||||
|
KAFKA_HEAP_OPTS: -Xmx2g
|
||||||
# healthcheck:
|
# healthcheck:
|
||||||
# test: ["CMD-SHELL", "kafka-topics.sh --bootstrap-server 127.0.0.1:9092 --topic main --describe"]
|
# test: ["CMD-SHELL", "kafka-topics.sh --bootstrap-server 127.0.0.1:9092 --topic main --describe"]
|
||||||
# interval: 2s
|
# interval: 2s
|
||||||
|
|
|
@ -120,6 +120,7 @@ services:
|
||||||
KAFKA_INTER_BROKER_LISTENER_NAME: PLAINTEXT
|
KAFKA_INTER_BROKER_LISTENER_NAME: PLAINTEXT
|
||||||
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
|
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
|
||||||
ALLOW_PLAINTEXT_LISTENER: yes
|
ALLOW_PLAINTEXT_LISTENER: yes
|
||||||
|
KAFKA_HEAP_OPTS: -Xmx2g
|
||||||
# healthcheck:
|
# healthcheck:
|
||||||
# test: ["CMD-SHELL", "kafka-topics.sh --bootstrap-server 127.0.0.1:9092 --topic main --describe"]
|
# test: ["CMD-SHELL", "kafka-topics.sh --bootstrap-server 127.0.0.1:9092 --topic main --describe"]
|
||||||
# interval: 2s
|
# interval: 2s
|
||||||
|
|
Loading…
Reference in New Issue