From 00701ce01157cd8f8cfc8d0572d32eff8360c397 Mon Sep 17 00:00:00 2001 From: Staffan Olsson Date: Sat, 1 Dec 2018 17:55:08 +0100 Subject: [PATCH] Every pod has its own IP so a maximum of one zk connection per pod should be sufficient in Kubernetes. I'm adding this config because it's represented in https://github.com/apache/kafka/blob/2.1/config/zookeeper.properties --- zookeeper/10zookeeper-config.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/zookeeper/10zookeeper-config.yml b/zookeeper/10zookeeper-config.yml index d5d72171..93a720bf 100644 --- a/zookeeper/10zookeeper-config.yml +++ b/zookeeper/10zookeeper-config.yml @@ -20,6 +20,7 @@ data: dataDir=/var/lib/zookeeper/data dataLogDir=/var/lib/zookeeper/log clientPort=2181 + maxClientCnxns=1 initLimit=5 syncLimit=2 server.1=pzoo-0.pzoo:2888:3888:participant