Testing host CPU MHz history
This commit is contained in:
parent
c56235afde
commit
bd85baf977
@ -273,18 +273,15 @@ def execute(config, state):
|
||||
host_cpu_mhz_hypervisor = host_cpu_mhz - sum(cpu_mhz.values())
|
||||
append_data_locally(path, cpu_mhz, data_length)
|
||||
state['host_cpu_mhz_history'].append(host_cpu_mhz_hypervisor)
|
||||
|
||||
append_data_remotely(state['db'],
|
||||
cpu_mhz,
|
||||
state['hostname'],
|
||||
host_cpu_mhz_hypervisor)
|
||||
|
||||
if log.isEnabledFor(logging.DEBUG):
|
||||
log.debug('Collected VM data: %s', str(cpu_mhz))
|
||||
log.debug('Overall host utilization: %s',
|
||||
str(float(host_cpu_mhz_hypervisor) / state['physical_cpu_mhz']))
|
||||
log.debug('Collected host CPU MHz: %s', str(host_cpu_mhz))
|
||||
log.debug('Collected host - VMs CPU MHz: %s', str(host_cpu_mhz - sum(cpu_mhz.values())))
|
||||
log.debug('Collected VM CPU MHz: %s', str(cpu_mhz))
|
||||
log.debug('Collected host CPU MHz: %s', str(host_cpu_mhz_hypervisor))
|
||||
log.debug('Host CPU MHz history: %s', str(state['host_cpu_mhz_history']))
|
||||
|
||||
state['previous_overload'] = log_host_overload(
|
||||
state['db'],
|
||||
|
Loading…
x
Reference in New Issue
Block a user