From 38acc50f9af00c99a37cd4647077c064b51441f0 Mon Sep 17 00:00:00 2001 From: Klaus Aehlig Date: Fri, 30 May 2014 15:14:59 +0200 Subject: [PATCH] Provide constants for the master voting When voting for the master node, it might be that too many nodes are temporarily not reachable, e.g., after a mass reboot. In this case, we wait a given interval and retry. Signed-off-by: Klaus Aehlig Reviewed-by: Petr Pudlak --- src/Ganeti/Constants.hs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/Ganeti/Constants.hs b/src/Ganeti/Constants.hs index bb43e3361..91759b808 100644 --- a/src/Ganeti/Constants.hs +++ b/src/Ganeti/Constants.hs @@ -4736,6 +4736,17 @@ luxiLivelockPrefix = "luxi-daemon" luxiCancelJobTimeout :: Int luxiCancelJobTimeout = (luxiDefRwto - 1) `div` 4 +-- * Master voting constants + +-- | Number of retries to carry out if nodes do not answer +masterVotingRetries :: Int +masterVotingRetries = 6 + +-- | Retry interval (in seconds) in master voting, if not enough answers +-- could be gathered. +masterVotingRetryIntervall :: Int +masterVotingRetryIntervall = 10 + -- * Query language constants -- ** Logic operators with one or more operands, each of which is a -- GitLab