Jump to: navigation, search

Difference between revisions of "ExtensibleResourceTracking"

(Summary - (in progress))
(Summary - (in progress))
Line 8: Line 8:
 
The compute manager on a host is aware of the resources available at the compute node and is responsible for their allocation and management. Because it has definitive knowledge of what resources are actually in use, the compute manager has the final say as to whether a compute node is able to host an instance.
 
The compute manager on a host is aware of the resources available at the compute node and is responsible for their allocation and management. Because it has definitive knowledge of what resources are actually in use, the compute manager has the final say as to whether a compute node is able to host an instance.
  
So we need:
+
We will need:
 
* a definition of a resource
 
* a definition of a resource
 
* a definition of a resource requirement
 
* a definition of a resource requirement
* a means to specify resources for compute nodes
 
* a means to specify resource requirements for instances
 
 
* a naming scheme to allow resource requirements to be related to resources
 
* a naming scheme to allow resource requirements to be related to resources
* a means for the compute nodes to communicate resource availability to the scheduler
+
* changes for compute nodes
 +
** resource configuration
 +
** resource_tracker
 +
** claims
 +
* changes for instances
 +
** resource requirements in flavors
 +
** resource requirements in requests
 +
** resource requirements in instances
 +
* changes for the database
 +
** resource availability at compute_nodes
 +
** resource requirements in instances
 +
* changes for scheduler (filter scheduler)
 +
** host manager
 +
** filters
 +
** weighers
  
We assume we will use objects throughout
+
=== Definitions ===
 
 
=== A definition of a resource ===
 
 
The job of tracking the quantity of resources available on a compute node falls to the resource_tracker and the job of testing if there is sufficient capacity falls to the Claim
 
The job of tracking the quantity of resources available on a compute node falls to the resource_tracker and the job of testing if there is sufficient capacity falls to the Claim
 
=== A definition of a resource requirement ===
 
 
=== A means to specify resources for compute nodes ===
 
 
=== A means to specify resource requirements for instances ===
 
 
=== A naming scheme to allow resource requirements to be related to resources ===
 
 
=== A means for the compute nodes to communicate resource availability to the scheduler ===
 

Revision as of 12:06, 28 November 2013

Summary - (in progress)

There are a number of defined resources in Nova, including disk, memory and number of vCPU. The purpose of this specification is to support an extensible set of resources so that new resources can be defined for compute nodes and resource requirements for instances. These will be made available to the scheduler and allocated by the compute manager.

The resources of a compute node have limited capacity. Most, including disk, memory and vCPU, map to a physical counterpart, typically via a virtualisation technology, but it is also possible to create entirely abstract resource types that do not. As an example, a provider may chose that only one instances of a certain type should run on any compute node. This trivial example can be supported by defining a new resource for compute nodes and associating a requirement for that resource with the instance type.

Each instance has resource requirements specified as the quantity of each type of resource it needs. These are used by the scheduler to match it to compute nodes with sufficient available resources.

The compute manager on a host is aware of the resources available at the compute node and is responsible for their allocation and management. Because it has definitive knowledge of what resources are actually in use, the compute manager has the final say as to whether a compute node is able to host an instance.

We will need:

  • a definition of a resource
  • a definition of a resource requirement
  • a naming scheme to allow resource requirements to be related to resources
  • changes for compute nodes
    • resource configuration
    • resource_tracker
    • claims
  • changes for instances
    • resource requirements in flavors
    • resource requirements in requests
    • resource requirements in instances
  • changes for the database
    • resource availability at compute_nodes
    • resource requirements in instances
  • changes for scheduler (filter scheduler)
    • host manager
    • filters
    • weighers

Definitions

The job of tracking the quantity of resources available on a compute node falls to the resource_tracker and the job of testing if there is sufficient capacity falls to the Claim