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) ThawedFromIdle()
- 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 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) ThawedFromIdle ¶
func (t *Manager) ThawedFromIdle()
func (*Manager) UnprovisionedFromIdle ¶
func (t *Manager) UnprovisionedFromIdle()
func (*Manager) UnprovisionedFromWaitNonLeader ¶
func (t *Manager) UnprovisionedFromWaitNonLeader()
Source Files ¶
- converge_global_expect.go
- crm_actions.go
- main.go
- main_cmd.go
- non_crm_action.go
- orchestrate_deleted.go
- orchestration.go
- orchestration_aborted.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_resource_restart.go
- orchestration_restarted.go
- orchestration_started.go
- orchestration_stopped.go
- orchestration_thawed.go
- orchestration_unprovisioned.go
Click to show internal directories.
Click to hide internal directories.