Documentation
¶
Overview ¶
Package imon is responsible for of local instance state
It provides the cluster data: ["cluster", "node", <localhost>, "services", "status", <instance>, "monitor"] ["cluster", "node", <localhost>, "services", "imon", <instance>] imon are created by the local instcfg, with parent context instcfg context. instcfg done => imon done worker watches on local instance status updates to clear reached status => unsetStatusWhenReached => orchestrate => pub new state if change worker watches on remote instance imon updates converge global expects => convergeGlobalExpectFromRemote => orchestrate => pub new state if change
Index ¶
- func SetCmdPathForTest(s string)
- type Factory
- type Manager
- func (t *Manager) AllInstanceMonitorState(s instance.MonitorState) bool
- func (t *Manager) AllInstanceMonitors() map[string]instance.Monitor
- func (t *Manager) GetInstanceMonitor(node string) (instance.Monitor, bool)
- func (t *Manager) IsInstanceStartFailed(node string) (bool, bool)
- func (t *Manager) IsInstanceStatusNotApplicable(node string) (bool, bool)
- func (t *Manager) IsNodeMonitorStatusRankable(node string) (bool, bool)
- func (t *Manager) UnfrozenFromIdle()
- func (t *Manager) UnprovisionedFromIdle()
- func (t *Manager) UnprovisionedFromWaitNonLeader()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetCmdPathForTest ¶
func SetCmdPathForTest(s string)
SetCmdPathForTest set the opensvc command path for tests
Types ¶
type Factory ¶
type Factory struct {
DrainDuration time.Duration
SubQS pubsub.QueueSizer
DelayDuration time.Duration
// Workers, when set, counts the workers of the monitors started,
// each done when its worker returns: a test waits on it after
// cancelling the daemon, before the next one resets the paths and
// the data the workers read. The daemon leaves it nil.
Workers *sync.WaitGroup
}
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func (*Manager) AllInstanceMonitorState ¶
func (t *Manager) AllInstanceMonitorState(s instance.MonitorState) bool
func (*Manager) AllInstanceMonitors ¶
func (*Manager) GetInstanceMonitor ¶
func (*Manager) IsInstanceStartFailed ¶
func (*Manager) IsInstanceStatusNotApplicable ¶
func (*Manager) IsNodeMonitorStatusRankable ¶
func (*Manager) UnfrozenFromIdle ¶
func (t *Manager) UnfrozenFromIdle()
func (*Manager) UnprovisionedFromIdle ¶
func (t *Manager) UnprovisionedFromIdle()
func (*Manager) UnprovisionedFromWaitNonLeader ¶
func (t *Manager) UnprovisionedFromWaitNonLeader()
Source Files
¶
- affinity.go
- converge_global_expect.go
- crm_actions.go
- event_refresh.go
- fetch_hold.go
- fetch_resource_files.go
- main.go
- main_cmd.go
- non_crm_action.go
- orchestrate_deleted.go
- orchestration.go
- orchestration_aborted.go
- orchestration_capped.go
- orchestration_frozen.go
- orchestration_ha.go
- orchestration_local_expect_shutdown.go
- orchestration_placed.go
- orchestration_placed_at.go
- orchestration_provisioned.go
- orchestration_purged.go
- orchestration_resized.go
- orchestration_resource_restart.go
- orchestration_restarted.go
- orchestration_started.go
- orchestration_stopped.go
- orchestration_unfrozen.go
- orchestration_unprovisioned.go
- outdated.go
- peers_starting.go
- stonith.go
- used_by_protected.go
- volume_refresh.go
- wait_affinity.go
- wait_destination.go
- wait_files.go
- wait_syncs.go
Click to show internal directories.
Click to hide internal directories.