File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -159,3 +159,18 @@ A: yes. Say you want to change `kafka1` port to `12345` (only relevant lines are
159159 environment:
160160 KAFKA_ADVERTISED_LISTENERS: LISTENER_DOCKER_INTERNAL://kafka1:19092,LISTENER_DOCKER_EXTERNAL://${DOCKER_HOST_IP:-127.0.0.1}:12345
161161```
162+
163+ ** Q: Kafka is using a lot of disk space for testing. Can I reduce it?
164+
165+ A: yes. This is for testing only!!! Reduce the KAFKA_LOG_SEGMENT_BYTES to 16MB and the KAFKA_LOG_RETENTION_BYTES to 128MB
166+
167+ ```
168+ kafka1:
169+ image: confluentinc/cp-kafka:5.5.0
170+ ...
171+ environment:
172+ ...
173+ # For testing small segments 16MB and retention of 128MB
174+ KAFKA_LOG_SEGMENT_BYTES: 16777216
175+ KAFKA_LOG_RETENTION_BYTES: 134217728
176+ ```
You can’t perform that action at this time.
0 commit comments