Setting IOPS limits for a flavor
As with CPU limits, IOPS limits can also be imposed to prevent an instance type from hogging all of the available IO on a system. IOPS here refers to the storage and network IO. Also, as with CPU limits, IOPS limits are a special case of flavor attributes that you may encounter frequently.
Note
At the time of this writing, the openstack
command-line client is the only way to view and change this setting. It is also not shown by default when viewing instance attributes.
Getting ready
To add an IOPS limit to a flavor, you will need the following:
The
openstack
command-line clientThe
openrc
file containing appropriate credentialsThe name of the flavor to change
The value you would like to set the IOPS limit to.
In our example, these values are as follows:
disk_read_iops
= 100 IOPSdisk_write_iops
= 100 IOPS
How to do it…
The following commands are used to add IOPS limits to a flavor:
Note
As with changing flavor attributes, IOPS limits are not applied to running instances...