From b4c2b9bdf8173368ca54051765a57db3e88e5ab5 Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Tue, 15 Oct 2024 11:11:10 -0400 Subject: [PATCH] Lower sync and init tick limits Lower both of these to 5 seconds to ensure Zookeeper doesn't linger on startup or synchronization while pvcnoded is starting up (15s in 0.9.101). --- roles/pvc/templates/zookeeper/zoo.cfg.j2 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/roles/pvc/templates/zookeeper/zoo.cfg.j2 b/roles/pvc/templates/zookeeper/zoo.cfg.j2 index 530ec28..d5a3c23 100644 --- a/roles/pvc/templates/zookeeper/zoo.cfg.j2 +++ b/roles/pvc/templates/zookeeper/zoo.cfg.j2 @@ -5,10 +5,10 @@ dataDir=/var/lib/zookeeper # Set our tick time to 1 second tickTime=1000 -# Initialization can take up to 30 ticks -initLimit=30 -# Syncing can take up to 15 ticks -syncLimit=15 +# Initialization can take up to 5 ticks +initLimit=5 +# Syncing can take up to 5 ticks +syncLimit=5 # Lower snapshot count from 100k to 10k snapCount=10000 # Halve the snapshot size to 2GB