Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Ganeti.Daemon.Utils
Description
Utility functions for complex operations carried out by several daemons.
Synopsis
- verifyMaster :: Int -> IO (Result ())
- handleMasterVerificationOptions :: DaemonOptions -> IO (Either ExitCode ())
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.