|
|
|
Description |
Some common types.
|
|
Synopsis |
|
|
|
Documentation |
|
|
The instance index type.
|
|
|
The node index type.
|
|
type NameAssoc = [(String, Int)] | Source |
|
The type used to hold name-to-idx mappings.
|
|
|
A separate name for the cluster score type.
|
|
|
A separate name for a weight metric.
|
|
|
The resource spec type.
| Constructors | RSpec | | rspecCpu :: Int | Requested VCPUs
| rspecMem :: Int | Requested memory
| rspecDsk :: Int | Requested disk
|
|
| Instances | |
|
|
|
The dynamic resource specs of a machine (i.e. load or load
capacity, as opposed to size).
| Constructors | DynUtil | | cpuWeight :: Weight | Standardised CPU usage
| memWeight :: Weight | Standardised memory load
| dskWeight :: Weight | Standardised disk I/O usage
| netWeight :: Weight | Standardised network usage
|
|
| Instances | |
|
|
|
Initial empty utilisation
|
|
|
|
|
|
|
|
|
The description of an instance placement. It contains the
instance index, the new primary and secondary node, the move being
performed and the score of the cluster after the move.
|
|
|
An instance move definition
| Constructors | Failover | Failover the instance (f)
| ReplacePrimary Ndx | Replace primary (f, r:np, f)
| ReplaceSecondary Ndx | Replace secondary (r:ns)
| ReplaceAndFailover Ndx | Replace secondary, failover (r:np, f)
| FailoverAndReplace Ndx | Failover, replace secondary (f, r:ns)
|
| Instances | |
|
|
|
Formatted solution output for one move (involved nodes and
commands
|
|
|
A list of command elements
|
|
|
Connection timeout (when using non-file methods).
|
|
|
The default timeout for queries (when using non-file methods).
|
|
|
This is similar to the JSON library Result type - *very* similar, but
we want to use it in multiple places, so we abstract it into a
mini-library here
| Constructors | | Instances | |
|
|
|
Reason for an operation's falure
| Constructors | FailMem | Failed due to not enough RAM
| FailDisk | Failed due to not enough disk
| FailCPU | Failed due to not enough CPU capacity
| FailN1 | Failed due to not passing N1 checks
| FailTags | Failed due to tag exclusion
|
| Instances | |
|
|
|
List with failure statistics
|
|
|
Either-like data-type customized for our failure modes
| Constructors | OpFail FailMode | Failed operation
| OpGood a | Success operation
|
| Instances | |
|
|
|
A generic class for items that have updateable names and indices.
| | Methods | | Returns the name of the element
| | | Returns the index of the element
| | setName :: a -> String -> a | Source |
| Updates the name of the element
| | | Updates the index of the element
|
| | Instances | |
|
|
Produced by Haddock version 2.4.2 |