You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

Our volume service is hosted on the ceph cluster, and delivers add-on disks for the vm's. These volumes are all shaped performance-vise, to prevent single tenants from overloading our ceph cluster. They come in several flavours:

  • Slow: The slow volumes are shaped to 50IOPS, which is rather slow. It can be used to simulate very slow disks for instance.
  • Normal: This is the general purpose volume type. It is used by most tenants for their general purpose storage needs. It is shaped to 300 IOPS, which corresponds to a fast 15K RPM HDD.
  • Fast: If a tenant needs more performance than the Normal type they can request a permission to create a "Fast" volume, which deliveres 600 IOPS.
  • VeryFast: Delivering 1200 IOPS, the VeryFast volume can give a much greater performance than the other volume types. We should however be careful assigning this volume to our tenants, as it is capable to put some real load onto our ceph cluster if we have multiple of these volumes.

Give access to volume-types

The volume-types Fast and VeryFast are set as private volume-types, and we need to share these types with a project in case the project needs a volume of this type. If we want to give the project "DEMO_guide" access to volumes of the "Fast" flavor we can use the following command:

Give access to volume-type
$ openstack volume type set --project DEMO_guide Fast

Revoke access to volume-types

To revoke the access given for a specifiv volume-type the following command can be used:

Revoke access to volume-type
$ openstack volume type set --project DEMO_guide Fast

Quotas

The default quotas for cinder volumes are limiting the amount of volumes a project can create, but it does not limit any of the volume-types:

Cinder quotas
$ openstack quota show default
+----------------------+---------+
| Field                | Value   |
+----------------------+---------+
    ....
| volumes              | 10      |
| volumes_Fast         | -1      |
| volumes_Normal       | -1      |
| volumes_Slow         | -1      |
| volumes_VeryFast     | -1      |
+----------------------+---------+

When giving access to faster volume-types we should make sure to limit how may fast volumes can be created. For instance, we might want to allow a certain project create 10 volumes, but only one of the type Fast. In that case we can use the following command to limit the amount of Fast volumes for the project DEMO_guide:

Modify quota for volume types
$ openstack quota set DEMO_guide --volumes 1 --volume-type Fast

Resulting in changed quotas:

Display updated quotas
eigil@manager:~$ openstack quota show DEMO_guide
+----------------------+----------------------------------+
| Field                | Value                            |
+----------------------+----------------------------------+
   ... 
| volumes              | 10                               |
| volumes_Fast         | 1                                |
| volumes_Normal       | -1                               |
| volumes_Slow         | -1                               |
| volumes_VeryFast     | -1                               |
+----------------------+----------------------------------+
  • No labels