reduce the offsets topic partitions
[dmaap/messagerouter/messageservice.git] / src / main / resources / docker-compose / docker-compose.yml
index c62cf0f..9878c3c 100644 (file)
@@ -39,6 +39,8 @@ services:
     KAFKA_OPTS: -Djava.security.auth.login.config=/etc/kafka/secrets/jaas/zk_client_jaas.conf
     KAFKA_ZOOKEEPER_SET_ACL: 'true'
     KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
+    # Reduced the number of partitions only to avoid the timeout error for the first subscribe call in slow environment
+    KAFKA_OFFSETS_TOPIC_NUM_PARTITIONS: 10
    volumes:
      -  ./kafka/zk_client_jaas.conf:/etc/kafka/secrets/jaas/zk_client_jaas.conf
    networks: