diff --git a/defaults/main.yml b/defaults/main.yml index 77a98c0..7ce71f5 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -21,6 +21,11 @@ zookeeper_autopurge_purgeInterval: 0 zookeeper_autopurge_snapRetainCount: 10 zookeeper_cluster_ports: "2888:3888" zookeeper_max_client_connections: 60 +pre_alloc_size: 64000 +snap_count: 100000 +leader_serves: yes + + data_dir: /var/lib/zookeeper log_dir: /var/log/zookeeper diff --git a/templates/zoo.cfg.j2 b/templates/zoo.cfg.j2 index 9cb87c2..902271f 100644 --- a/templates/zoo.cfg.j2 +++ b/templates/zoo.cfg.j2 @@ -10,6 +10,10 @@ autopurge.purgeInterval={{ zookeeper_autopurge_purgeInterval }} autopurge.snapRetainCount={{ zookeeper_autopurge_snapRetainCount }} {% endif %} +preAllocSize={{ pre_alloc_size }} +snapCount={{ snap_count }} +leaderServes={{ leader_serves }} + {% for server in zookeeper_hosts %} {% if server.host is defined %} {% if server.ip is defined %}