ganeti

Safe HaskellSafe-Infered

Ganeti.HTools.AlgorithmParams

Description

Algorithm Options for HTools

This module describes the parameters that influence the balancing algorithm in htools.

Synopsis

Documentation

data AlgorithmOptions Source

Constructors

AlgorithmOptions 

Fields

algDiskMoves :: Bool

Whether disk moves are allowed

algInstanceMoves :: Bool

Whether instance moves are allowed

algRestrictedMigration :: Bool

Whether migration is restricted

algIgnoreSoftErrors :: Bool

Whether to always ignore soft errors

algEvacMode :: Bool

Consider only eavacation moves

algMinGain :: Double

Minimal gain per balancing step

algMinGainLimit :: Double

Limit below which minimal gain is used

fromCLIOptions :: Options -> AlgorithmOptionsSource

Obtain the relevant algorithmic option from the commandline options

defaultOptions :: AlgorithmOptionsSource

Default options for the balancing algorithm