Add fix for hardware.cpu.util meter in sd-strategy
This patch set removes normalizing for hardware.cpu.util meter since the values that comes from ceilometer hardware.cpu.util are already normalized. Closes-Bug: #1588257 Change-Id: I9494f2cc9bbaa6dfd168fb515f679eb6d7f2398a
This commit is contained in:
@@ -192,9 +192,6 @@ class WorkloadStabilization(base.WorkloadStabilizationBaseStrategy):
|
||||
def normalize_hosts_load(self, hosts, current_model):
|
||||
normalized_hosts = deepcopy(hosts)
|
||||
for host in normalized_hosts:
|
||||
if 'cpu_util' in normalized_hosts[host]:
|
||||
normalized_hosts[host]['cpu_util'] /= float(100)
|
||||
|
||||
if 'memory.resident' in normalized_hosts[host]:
|
||||
h_memory = current_model.get_resource_from_id(
|
||||
resource.ResourceType.memory).get_capacity(
|
||||
|
||||
Reference in New Issue
Block a user