Documentation
¶
Overview ¶
Package freeze handles the frozen flags of the node and of the object instances, which keep the daemon from acting on its own initiative.
A frozen flag records the scope of the freeze it was raised by. A node coming back after a freeze of the whole cluster or of a whole object, which it missed while it was down, adopts it from its peers. A freeze of a single node or instance, and a freeze the daemon took on its own, stay where they were raised.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FreezeScope ¶
FreezeScope raises the frozen flag at p, for the freeze of the scope. A flag already raised keeps the scope of the freeze that raised it.
Types ¶
type Scope ¶
type Scope string
Scope is what a freeze was asked for.
const ( // ScopeCluster is a node frozen by a freeze of the cluster. ScopeCluster Scope = "cluster" // ScopeNode is a node frozen alone. ScopeNode Scope = "node" // ScopeObject is an instance frozen by a freeze of its object. ScopeObject Scope = "object" // ScopeInstance is an instance frozen alone. ScopeInstance Scope = "instance" )