From ee79762c736628c774476bfd9e0764f05a1ceaee Mon Sep 17 00:00:00 2001 From: Mark Veidemanis Date: Wed, 21 Sep 2022 20:26:05 +0100 Subject: [PATCH] Set Kafka max heap size --- docker-compose.yml | 1 + docker/docker-compose.prod.yml | 1 + 2 files changed, 2 insertions(+) diff --git a/docker-compose.yml b/docker-compose.yml index 8eb0b94..051d782 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -123,6 +123,7 @@ services: KAFKA_INTER_BROKER_LISTENER_NAME: PLAINTEXT KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1 ALLOW_PLAINTEXT_LISTENER: yes + KAFKA_HEAP_OPTS: -Xmx2g # healthcheck: # test: ["CMD-SHELL", "kafka-topics.sh --bootstrap-server 127.0.0.1:9092 --topic main --describe"] # interval: 2s diff --git a/docker/docker-compose.prod.yml b/docker/docker-compose.prod.yml index d6aa7e8..64fca6c 100644 --- a/docker/docker-compose.prod.yml +++ b/docker/docker-compose.prod.yml @@ -120,6 +120,7 @@ services: KAFKA_INTER_BROKER_LISTENER_NAME: PLAINTEXT KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1 ALLOW_PLAINTEXT_LISTENER: yes + KAFKA_HEAP_OPTS: -Xmx2g # healthcheck: # test: ["CMD-SHELL", "kafka-topics.sh --bootstrap-server 127.0.0.1:9092 --topic main --describe"] # interval: 2s