The nova.compute.stats Module

class Stats

Bases: dict

Handler for updates to compute node workload stats.

calculate_workload()

Calculate current load of the compute host based on task states.

clear()
io_workload

Calculate an I/O based load by counting I/O heavy operations.

num_instances
num_instances_for_project(project_id)
num_os_type(os_type)
num_vcpus_used
update_stats_for_instance(instance)

Update stats after an instance is changed.

update_stats_for_migration(instance_type, sign=1)

Previous topic

The nova.compute.rpcapi Module

Next topic

The nova.compute.task_states Module

This Page