From 0880af6ef26ffea5bffe674af3444b2f254cbfbc Mon Sep 17 00:00:00 2001 From: Oleksandr Stepanov Date: Thu, 23 May 2019 17:33:18 +0300 Subject: [PATCH] Added default values for configuration variables --- defaults/main.yml | 5 +++++ templates/zoo.cfg.j2 | 4 ++++ 2 files changed, 9 insertions(+) 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 %}