watcher.decision_engine.strategy.strategies.saving_energy Module¶watcher.decision_engine.strategy.strategies.saving_energy.SavingEnergy(config, osc=None)[source]¶Bases: watcher.decision_engine.strategy.strategies.base.SavingEnergyBaseStrategy
add_action_poweronoff_node(node_uuid, state)[source]¶Add an action for node disability into the solution.
| Parameters: |
|
|---|---|
| Returns: | None |
do_execute()[source]¶Strategy execution phase
This phase is where you should put the main logic of your strategy.
get_hosts_pool()[source]¶Get three pools, with_vms_node_pool, free_poweron_node_pool,
free_poweroff_node_pool.
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.