diff --git a/README.md b/README.md index f8c5d18..1a21498 100644 --- a/README.md +++ b/README.md @@ -53,6 +53,7 @@ tick_time: 2000 zookeeper_autopurge_purgeInterval: 0 zookeeper_autopurge_snapRetainCount: 10 zookeeper_cluster_ports: "2888:3888" +zookeeper_max_client_connections: 60 data_dir: /var/lib/zookeeper log_dir: /var/log/zookeeper diff --git a/defaults/main.yml b/defaults/main.yml index 7b6400c..ecf0222 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -20,6 +20,7 @@ tick_time: 2000 zookeeper_autopurge_purgeInterval: 0 zookeeper_autopurge_snapRetainCount: 10 zookeeper_cluster_ports: "2888:3888" +zookeeper_max_client_connections: 60 data_dir: /var/lib/zookeeper log_dir: /var/log/zookeeper diff --git a/templates/zoo.cfg.j2 b/templates/zoo.cfg.j2 index a5e8fb6..9cb87c2 100644 --- a/templates/zoo.cfg.j2 +++ b/templates/zoo.cfg.j2 @@ -4,7 +4,7 @@ dataLogDir={{ log_dir }} clientPort={{ client_port }} initLimit={{ init_limit }} syncLimit={{ sync_limit }} - +maxClientCnxns={{ zookeeper_max_client_connections }} {% if zookeeper_autopurge_purgeInterval > 0 %} autopurge.purgeInterval={{ zookeeper_autopurge_purgeInterval }} autopurge.snapRetainCount={{ zookeeper_autopurge_snapRetainCount }}