ganeti-3.1: Cluster-based virtualization management software
Safe HaskellSafe-Inferred
LanguageHaskell2010

Ganeti.Daemon.Utils

Description

Utility functions for complex operations carried out by several daemons.

Synopsis

Documentation

verifyMaster :: Int -> IO (Result ()) #

Verify, by voting, that this node is the master. Bad if we're not. Allow the given number of retries to wait for not available nodes.

handleMasterVerificationOptions :: DaemonOptions -> IO (Either ExitCode ()) #

Verify master position according to the options provided, usually by carrying out a voting. Either return unit on success, or a suggested exit code.