Skip to content

Commit f3da6e4

Browse files
authored
Document how to use less space for testing using smaller segments. (#68)
1 parent aad89b0 commit f3da6e4

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff 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+
```

0 commit comments

Comments
 (0)