Safe Haskell | Safe-Infered |
---|
Tags
This module holds all the tag interpretation done by htools.
- exTagsPrefix :: String
- standbyPrefix :: String
- migrationPrefix :: String
- allowMigrationPrefix :: String
- standbyAuto :: String
- autoRepairTagPrefix :: String
- autoRepairTagEnabled :: String
- autoRepairTagPending :: String
- autoRepairTagResult :: String
- autoRepairTagSuspended :: String
- hasStandbyTag :: Node -> Bool
- getMigRestrictionsList :: [String] -> [String] -> [String]
- getMigRestrictions :: [String] -> [String] -> Set String
- splitAtColons :: String -> Maybe (String, String)
- migrations :: [String] -> [(String, String)]
- getRecvMigRestrictions :: [String] -> [String] -> Set String
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.
standbyPrefix :: StringSource
migrationPrefix :: StringSource
allowMigrationPrefix :: StringSource
standbyAuto :: StringSource
The tag to be added to nodes that were shutdown by hsqueeze.
autoRepairTagPrefix :: StringSource
Auto-repair tag prefix
autoRepairTagEnabled :: StringSource
autoRepairTagPending :: StringSource
autoRepairTagResult :: StringSource
autoRepairTagSuspended :: StringSource
Predicates
hasStandbyTag :: Node -> BoolSource
Predicate of having a standby tag.
Migration restriction tags
getMigRestrictionsList :: [String] -> [String] -> [String]Source
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.