Skip to content

Commit 9a18a4a

Browse files
authored
fix(kafka): Reduce Kafka resource usage (#674)
Fixes #502 and applies the suggestions from there: - Number of partitons=1 (from 40) - Log retention to 1 day (from 7 days) These settings should be more suited towards the scale this repo is intended for. NOTE: The partition count change will only affect new installs unless `sentry-kafka` and related volumes are cleaned.
1 parent d6247e2 commit 9a18a4a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docker-compose.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,8 @@ services:
8484
KAFKA_ZOOKEEPER_CONNECT: 'zookeeper:2181'
8585
KAFKA_ADVERTISED_LISTENERS: 'PLAINTEXT://kafka:9092'
8686
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: '1'
87+
KAFKA_OFFSETS_TOPIC_NUM_PARTITIONS: '1'
88+
KAFKA_LOG_RETENTION_HOURS: '24'
8789
KAFKA_MESSAGE_MAX_BYTES: '50000000' #50MB or bust
8890
KAFKA_MAX_REQUEST_SIZE: '50000000' #50MB on requests apparently too
8991
CONFLUENT_SUPPORT_METRICS_ENABLE: 'false'

0 commit comments

Comments
 (0)