ganeti

Safe HaskellSafe-Infered

Ganeti.Daemon.Utils

Description

Utility functions for complex operations carried out by several daemons.

Synopsis

Documentation

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

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 ())Source

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