Docker: Improve kafka configuration.

This commit is contained in:
Igor Kulikov 2018-10-16 17:34:06 +03:00
parent 0f14a36cfe
commit 591bc88c2e
2 changed files with 4 additions and 1 deletions

View File

@ -7,4 +7,4 @@ WEB_UI_DOCKER_NAME=tb-web-ui
TB_VERSION=2.2.0-SNAPSHOT
KAFKA_TOPICS=js.eval.requests:100:1
KAFKA_TOPICS=js.eval.requests:100:1:delete --config=retention.ms=60000 --config=retention.bytes=1073741824

View File

@ -36,6 +36,9 @@ services:
KAFKA_INTER_BROKER_LISTENER_NAME: INSIDE
KAFKA_CREATE_TOPICS: "${KAFKA_TOPICS}"
KAFKA_AUTO_CREATE_TOPICS_ENABLE: 'false'
KAFKA_LOG_RETENTION_BYTES: 1073741824
KAFKA_LOG_RETENTION_MS: 300000
KAFKA_LOG_CLEANUP_POLICY: delete
depends_on:
- zookeeper
tb-js-executor: