Commit 591bc88c2ebf96671f963999de38c91d41700fce
1 parent
0f14a36c
Docker: Improve kafka configuration.
Showing
2 changed files
with
4 additions
and
1 deletions
@@ -7,4 +7,4 @@ WEB_UI_DOCKER_NAME=tb-web-ui | @@ -7,4 +7,4 @@ WEB_UI_DOCKER_NAME=tb-web-ui | ||
7 | 7 | ||
8 | TB_VERSION=2.2.0-SNAPSHOT | 8 | TB_VERSION=2.2.0-SNAPSHOT |
9 | 9 | ||
10 | -KAFKA_TOPICS=js.eval.requests:100:1 | 10 | +KAFKA_TOPICS=js.eval.requests:100:1:delete --config=retention.ms=60000 --config=retention.bytes=1073741824 |
@@ -36,6 +36,9 @@ services: | @@ -36,6 +36,9 @@ services: | ||
36 | KAFKA_INTER_BROKER_LISTENER_NAME: INSIDE | 36 | KAFKA_INTER_BROKER_LISTENER_NAME: INSIDE |
37 | KAFKA_CREATE_TOPICS: "${KAFKA_TOPICS}" | 37 | KAFKA_CREATE_TOPICS: "${KAFKA_TOPICS}" |
38 | KAFKA_AUTO_CREATE_TOPICS_ENABLE: 'false' | 38 | KAFKA_AUTO_CREATE_TOPICS_ENABLE: 'false' |
39 | + KAFKA_LOG_RETENTION_BYTES: 1073741824 | ||
40 | + KAFKA_LOG_RETENTION_MS: 300000 | ||
41 | + KAFKA_LOG_CLEANUP_POLICY: delete | ||
39 | depends_on: | 42 | depends_on: |
40 | - zookeeper | 43 | - zookeeper |
41 | tb-js-executor: | 44 | tb-js-executor: |