Track resources like memory and disk for a compute host. Provides the scheduler with useful information about availability through the ComputeNode model.
Bases: object
Compute helper class for keeping track of resource usage as instances are built and destroyed.
Remove usage from the given instance.
Remove usage for an incoming/outgoing migration.
Indicate that some resources are needed for an upcoming compute instance build operation.
This should be called before the compute node is about to perform an instance build operation that will consume additional resources.
Parameters: |
|
---|---|
Returns: | A Claim ticket representing the reserved resources. It can be used to revert the resource usage if an error occurs during the instance build. |
Create a claim for a rebuild operation.
Create a claim for a resize or cold-migration move.
Override in-memory calculations of compute node resource usage based on data audited from the hypervisor layer.
Add in resource claims in progress to account for operations that have declared a need for resources, but not necessarily retrieved them from the hypervisor layer yet.
Update the resource usage and stats after a change in an instance