From db709691bee76f74d6138b1d792873556294665e Mon Sep 17 00:00:00 2001 From: zhufl Date: Mon, 6 Jan 2020 15:29:25 +0800 Subject: [PATCH] Fix duplicated words issue like "an active instance instance" This is to fix the duplicated words issue like "Pick up an active instance instance to migrate". Change-Id: I74de4eb06aa1e462f0b499e3fd62a7cdc7570b31 --- watcher/decision_engine/strategy/strategies/uniform_airflow.py | 2 +- .../strategy/strategies/vm_workload_consolidation.py | 2 +- watcher/decision_engine/strategy/strategies/workload_balance.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/watcher/decision_engine/strategy/strategies/uniform_airflow.py b/watcher/decision_engine/strategy/strategies/uniform_airflow.py index 0344f09b4..6f4d06565 100644 --- a/watcher/decision_engine/strategy/strategies/uniform_airflow.py +++ b/watcher/decision_engine/strategy/strategies/uniform_airflow.py @@ -140,7 +140,7 @@ class UniformAirflow(base.BaseStrategy): return used_res['vcpu'], used_res['memory'], used_res['disk'] def choose_instance_to_migrate(self, hosts): - """Pick up an active instance instance to migrate from provided hosts + """Pick up an active instance to migrate from provided hosts :param hosts: the array of dict which contains node object """ diff --git a/watcher/decision_engine/strategy/strategies/vm_workload_consolidation.py b/watcher/decision_engine/strategy/strategies/vm_workload_consolidation.py index 7ee541c59..b9a09e387 100644 --- a/watcher/decision_engine/strategy/strategies/vm_workload_consolidation.py +++ b/watcher/decision_engine/strategy/strategies/vm_workload_consolidation.py @@ -48,7 +48,7 @@ class VMWorkloadConsolidation(base.ServerConsolidationBaseStrategy): A capacity coefficients (cc) might be used to adjust optimization thresholds. Different resources may require different coefficient values as well as setting up different coefficient values in both - phases may lead to to more efficient consolidation in the end. + phases may lead to more efficient consolidation in the end. If the cc equals 1 the full resource capacity may be used, cc values lower than 1 will lead to resource under utilization and values higher than 1 will lead to resource overbooking. diff --git a/watcher/decision_engine/strategy/strategies/workload_balance.py b/watcher/decision_engine/strategy/strategies/workload_balance.py index ffd1565b0..076b5aad5 100644 --- a/watcher/decision_engine/strategy/strategies/workload_balance.py +++ b/watcher/decision_engine/strategy/strategies/workload_balance.py @@ -133,7 +133,7 @@ class WorkloadBalance(base.WorkloadStabilizationBaseStrategy): cn.status in default_node_scope} def choose_instance_to_migrate(self, hosts, avg_workload, workload_cache): - """Pick up an active instance instance to migrate from provided hosts + """Pick up an active instance to migrate from provided hosts :param hosts: the array of dict which contains node object :param avg_workload: the average workload value of all nodes