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()
digest_stats(stats)

Apply stats provided as a dict or a json encoded string.

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)
update_stats_for_instance(instance, is_removed=False)

Update stats after an instance is changed.

Previous topic

The nova.compute.rpcapi Module

Next topic

The nova.compute.task_states Module

Project Source

This Page