[openstack-dev] [nova][scheduling] Can VM placement consider the VM network traffic need?
Rua, Philippe (Nokia - FI/Espoo)
philippe.rua at nokia.com
Fri Sep 1 08:42:31 UTC 2017
Will it be possible to include network bandwidth as a resource in Nova scheduling, for VM placement decision?
Context: in telecommunication applications, the network traffic is an important dimension of resource usage. For example, it is often important to distribute "bandwidth-greedy" VMs to different compute nodes. There were some earlier discussions on this topic, but I could not find a concrete outcome. 
After some reading, I wonder whether the Custom resource classes can provide a generic mechanism? 
Here is what I have in mind:
- The VM need is specified in the flavor extra-specs, e.g. resources:CUSTOM_BANDWIDTH=123.
- The compute node total capacity is specified in host aggregate metadata, e.g. CUSTOM_BANDWIDTH=999.
- Nova then takes care of the rest: scheduling where the free capacity is sufficient, and performing simple resource usage accounting (updating the compute node free network bandwidth capacity as required).
Is the outline above according to current plans?
If not, what would be possible/needed in order to achieve the same result, i.e. consider the VM network traffic need during VM placement?
More information about the OpenStack-dev