|
|
|
|
|
Description |
Generic data loader.
This module holds the common code for parsing the input data after it
has been loaded from external sources.
|
|
Synopsis |
|
|
|
|
Constants
|
|
|
The exclusion tag prefix.
|
|
Types
|
|
|
The iallocator request type.
This type denotes what request we got from Ganeti and also holds
request-specific fields.
| Constructors | Allocate Instance Int | A new instance allocation
| Relocate Idx Int [Ndx] | Choose a new secondary node
| NodeEvacuate [Idx] EvacMode | node-evacuate mode
| ChangeGroup [Gdx] [Idx] | Multi-relocate mode
|
|
|
|
|
A complete request, as received from Ganeti.
| Constructors | |
|
|
|
The cluster state.
| Constructors | ClusterData | | cdGroups :: List | The node group list
| cdNodes :: List | The node list
| cdInstances :: List | The instance list
| cdTags :: [String] | The cluster tags
| cdIPolicy :: IPolicy | The cluster instance policy
|
|
|
|
|
|
An empty cluster.
|
|
Functions
|
|
|
Lookups a node into an assoc list.
|
|
|
Lookups an instance into an assoc list.
|
|
|
Lookups a group into an assoc list.
|
|
|
Given a list of elements (and their names), assign indices to them.
|
|
|
For each instance, add its index to its primary and secondary nodes.
|
|
|
Set the node's policy to its group one. Note that this requires
the group to exist (should have been checked before), otherwise it
will abort with a runtime error.
|
|
|
Remove non-selected tags from the exclusion list.
|
|
|
:: [String] | Selected instances (if not empty)
| -> [String] | Excluded instances
| -> Instance | Target Instance
| -> Instance | Target Instance with updated attribute
| Update the movable attribute.
|
|
|
|
Disables moves for instances with a split group.
|
|
longestDomain :: [String] -> String | Source |
|
Compute the longest common suffix of a list of strings that
starts with a dot.
|
|
extractExTags :: [String] -> [String] | Source |
|
Extracts the exclusion tags from the cluster configuration.
|
|
|
Extracts the common suffix from node/instance names.
|
|
|
:: [(String, DynUtil)] | Instance utilisation data
| -> [String] | Exclusion tags
| -> [String] | Selected instances (if not empty)
| -> [String] | Excluded instances
| -> ClusterData | Data from backends
| -> Result ClusterData | Fixed cluster data
| Initializer function that loads the data from a node and instance
list and massages it into the correct format.
|
|
|
|
Checks the cluster data for consistency.
|
|
|
Compute the amount of memory used by primary instances on a node.
|
|
|
Compute the amount of disk used by instances on a node (either primary
or secondary).
|
|
Produced by Haddock version 2.6.0 |