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.

Tip

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 client
  • The openrc file containing appropriate credentials
  • The name of the flavor to change
  • The value you would like to set the IOPS limit to.
  • In our example, ...

Get OpenStack Cloud Computing Cookbook - Fourth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.