Skip to content

Commit

Permalink
Limit kafka and connect pod memory use
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Mitchell <[email protected]>
  • Loading branch information
wcmitchell committed Aug 29, 2024
1 parent 71406ee commit 39b8fae
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docker-compose-kafka.yml
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ services:
]
depends_on:
- zookeeper
mem_limit: 500m
ports:
- "9092:9092"
- "9094:9094"
Expand All @@ -149,6 +150,7 @@ services:
KAFKA_INTER_BROKER_LISTENER_NAME: "INTERNAL"
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
KAFKA_CREATE_TOPICS: "storage-topic:1:1:compact,global-id-topic:1:1:compact,input-topic:1:1:compact,logx-topic:1:1:compact,dbx-topic:1:1:compact"
KAFKA_HEAP_OPTS: "-Xmx500M -Xms500M"

kafka_connect:
container_name: rbac_kafka_connect
Expand All @@ -158,6 +160,7 @@ services:
]
depends_on:
- kafka
mem_limit: 500m
ports:
- "8083:8083"
volumes:
Expand Down

0 comments on commit 39b8fae

Please sign in to comment.