Documentation ¶
Index ¶
Constants ¶
View Source
const ( DefaultMistralActionRetries = 5 DefaultMistralActionRetryDelay = 60 DefaultMistralActionExecutionCheck = 15 )
View Source
const ( WorkflowExecutionSuccessState = "SUCCESS" WorkflowExecutionErrorState = "ERROR" )
There are 6 different states: IDLE, RUNNING, SUCCESS, ERROR, PAUSED, CANCELLED but we just handle two main states.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Healer ¶
Healer scrape metric from metrics backend periodically and evaluate whether it is necessary to do healing action
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager controls name resolver and healer instances
func NewManager ¶
NewManager create new Manager for name resolver and healer
type NResolver ¶
NResolver stands for name resolver it collects information from metrics backend which map instance IP to instance name
type NodeMetric ¶
NodeMetric contains and ID and a metric
type WFLExecTracker ¶
type WFLExecTracker struct {
// contains filtered or unexported fields
}
WFLExecTracker tracks workflow execution and maxRetries if necessary
func NewTracker ¶
func NewTracker(l log.Logger, mistralAct model.ActionMistral, os model.OpenStack) *WFLExecTracker
NewTracker spawns new execution tracker instance
Click to show internal directories.
Click to hide internal directories.