Resource Abstraction via Pools
The fundamental abstraction for resources is the
a representation for a number of indistinguishable resources.
As far as
cobald is concerned, it is inconsequential which specific resources make up a pool.
This allows each
Pool to implement its own strategy for managing resources.
For example, a
Pool providing virtual machines
may silently spawn a new machine to replace another.
The purpose of a
Pool is just to provide resources,
not use them for any specific task.
For example, the aforementioned VM may integrate into a Batch System which provides the VM with work.
What matters to
cobald is only whether resources match their underlying usage.
Supply and Demand
Pool effectively provides only one type of resources .
The only adjustment possible from the outside is how many resources are provided.
This is expressed as
The amount of resources a pool currently provides.
The amount of resources a pool is expected to provide.
demand is not derived by a
but should be adjusted from the outside.
The task of a
Pool is only to adjust its supply to match demand.
Allocation versus Utilisation
Pool does not calculate the demand for its resources,
it has to track and expose their usage.
This is expressed as two attributes that reflect how much and how well resources are used:
Fraction of the supplied resources which are allocated for usage
Fraction of the supplied resources which are actively used