
OpenStack Cloud Computing Cookbook
By :

In addition to defining the number of vCPUs assigned to an instance, limits on the use of these CPU cycles can be further imposed. Nova relies on the underlying hypervisor for the specific implementation of the CPU limits, and thus the values available may vary. Our example is based on QEMU/KVM.
CPU limits are a special case of flavor attributes that you may encounter.
To add a CPU limit to a flavor, you will need the following:
The openstack
command-line client
The openrc
file containing appropriate credentials
The name of the flavor to change
The values you would like to set the CPU limit to (share of time the allotted CPU is allowed to consume in milliseconds per cycle)
These values in our example are as follows:
cpu_quota
= 5000 ms
cpu_period
= 2500 ms
The following commands are used to add CPU limits to a flavor.
CPU limits are not applied live. Rather, they are applied on instance launch.
At the time of this writing, the openstack...
Change the font size
Change margin width
Change background colour