Effekte des Log-Compaction in dem Topic `state` sichtbar gemacht
authorKai Moritz <kai@juplo.de>
Sat, 2 Nov 2024 17:37:31 +0000 (18:37 +0100)
committerKai Moritz <kai@juplo.de>
Sun, 10 Nov 2024 13:27:08 +0000 (14:27 +0100)
docker/docker-compose.yml

index 34c2c5b..4603a26 100644 (file)
@@ -164,6 +164,8 @@ services:
                        --replication-factor 3 \
                        --config min.insync.replicas=2 \
                        --config cleanup.policy=compact \
+                       --config segment.ms=3000 \
+                       --config max.compaction.lag.ms=5000 \
           && echo Das Topic \'state\' wurde erfolgreich angelegt: \
           && kafka-topics --bootstrap-server kafka:9092 --describe --topic state \
           && \