The watcher.decision_engine.strategy.strategies.workload_stabilization
Module¶
Workload Stabilization control using live migration
This is workload stabilization strategy based on standard deviation algorithm. The goal is to determine if there is an overload in a cluster and respond to it by migrating VMs to stabilize the cluster.
It assumes that live migrations are possible in your cluster.
-
class
watcher.decision_engine.strategy.strategies.workload_stabilization.
WorkloadStabilization
(config, osc=None)[source]¶ Bases:
watcher.decision_engine.strategy.strategies.base.WorkloadStabilizationBaseStrategy
Workload Stabilization control using live migration
-
MEMOIZE
(fn)¶
-
calculate_migration_case
(hosts, instance_id, src_node_id, dst_node_id)[source]¶ Calculate migration case
Return list of standard deviation values, that appearing in case of migration of instance from source host to destination host :param hosts: hosts with their workload :param instance_id: the virtual machine :param src_node_id: the source node id :param dst_node_id: the destination node id :return: list of standard deviation values
-
create_migration_instance
(mig_instance, mig_source_node, mig_destination_node)[source]¶ Create migration VM
-