ganeti

Safe HaskellSafe-Infered

Ganeti.HTools.Tags

Contents

Description

Tags

This module holds all the tag interpretation done by htools.

Synopsis

Constants

exTagsPrefix :: StringSource

The exclusion tag prefix. Instance tags starting with this prefix describe a service provided by the instance. Instances providing the same service at not places on the same node.

standbyAuto :: StringSource

The tag to be added to nodes that were shutdown by hsqueeze.

autoRepairTagPrefix :: StringSource

Auto-repair tag prefix

Predicates

hasStandbyTag :: Node -> BoolSource

Predicate of having a standby tag.

Utility functions

getTags :: String -> [String] -> [String] -> Set StringSource

Migration restriction tags

getMigRestrictions :: [String] -> [String] -> Set StringSource

Given the cluster tags extract the migration restrictions from a node tag.

splitAtColons :: String -> Maybe (String, String)Source

migrations :: [String] -> [(String, String)]Source

getRecvMigRestrictions :: [String] -> [String] -> Set StringSource

Given the cluster tags, extract the set of migration restrictions a node is able to receive from its node tags.

Location tags

getLocations :: [String] -> [String] -> Set StringSource

Given the cluster tags, extract the node location tags from the node tags.