Actuator¶
Synopsis¶
display name: Actuator
goal: unclassified
Actuator
Actuator that simply executes the actions given as parameter
This strategy allows anyone to create an action plan with a predefined set of actions. This strategy can be used for 2 different purposes:
Test actions
Use this strategy based on an event trigger to perform some explicit task
Requirements¶
Metrics¶
None
Cluster data model¶
None
Actions¶
Default Watcher’s actions.
Planner¶
Default Watcher’s planner:
Weight planner implementation
This implementation builds actions with parents in accordance with weights. Set of actions having a higher weight will be scheduled before the other ones. There are two config options to configure: action_weights and parallelization.
Limitations
This planner requires to have action_weights and parallelization configs tuned well.
Configuration¶
Strategy parameters are:
parameter  | 
type  | 
default Value  | 
description  | 
|---|---|---|---|
  | 
array  | 
None  | 
Actions to be executed.  | 
The elements of actions array are:
parameter  | 
type  | 
default Value  | 
description  | 
|---|---|---|---|
  | 
string  | 
None  | 
Action name defined in setup.cfg(mandatory)  | 
  | 
string  | 
None  | 
Resource_id of the action.  | 
  | 
object  | 
None  | 
Input_parameters of the action(mandatory).  | 
Efficacy Indicator¶
None
Algorithm¶
This strategy create an action plan with a predefined set of actions.
How to use it ?¶
$ openstack optimize audittemplate create \
  at1 unclassified --strategy actuator
$ openstack optimize audit create -a at1 \
  -p actions='[{"action_type": "migrate", "resource_id": "56a40802-6fde-4b59-957c-c84baec7eaed", "input_parameters": {"migration_type": "live", "source_node": "s01"}}]'
External Links¶
None