From 8e3affd9ac609f9e3123c399791ee6e7d75b2856 Mon Sep 17 00:00:00 2001 From: Hidekazu Nakamura Date: Sun, 28 Jan 2018 19:58:07 +0900 Subject: [PATCH] [Doc] Add actuator strategy doc This patch adds actuator strategy document. Change-Id: I5f0415754c83e4f152155988625ada2208d6c35a --- doc/source/strategies/actuation.rst | 86 +++++++++++++++++++++++++++++ 1 file changed, 86 insertions(+) create mode 100644 doc/source/strategies/actuation.rst diff --git a/doc/source/strategies/actuation.rst b/doc/source/strategies/actuation.rst new file mode 100644 index 000000000..04e09500a --- /dev/null +++ b/doc/source/strategies/actuation.rst @@ -0,0 +1,86 @@ +============= +Actuator +============= + +Synopsis +-------- + +**display name**: ``Actuator`` + +**goal**: ``unclassified`` + + .. watcher-term:: watcher.decision_engine.strategy.strategies.actuation + +Requirements +------------ + +Metrics +******* + +None + +Cluster data model +****************** + +None + +Actions +******* + +Default Watcher's actions. + +Planner +******* + +Default Watcher's planner: + + .. watcher-term:: watcher.decision_engine.planner.weight.WeightPlanner + +Configuration +------------- + +Strategy parameters are: + +==================== ====== ===================== ============================= +parameter type default Value description +==================== ====== ===================== ============================= +``actions`` array None Actions to be executed. +==================== ====== ===================== ============================= + +The elements of actions array are: + +==================== ====== ===================== ============================= +parameter type default Value description +==================== ====== ===================== ============================= +``action_type`` string None Action name defined in + setup.cfg(mandatory) +``resource_id`` string None Resource_id of the action. +``input_parameters`` 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 ? +--------------- + +.. code-block:: shell + + $ 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