Skip to content

Commit

Permalink
introduce ansible default var max_client_connections to inject maxCli…
Browse files Browse the repository at this point in the history
…entCnxns into zoo.cfg template
  • Loading branch information
Eric Malloy committed Apr 5, 2018
1 parent 31a3cab commit 70b42ef
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion templates/zoo.cfg.j2
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down

0 comments on commit 70b42ef

Please sign in to comment.