Skip to content

Instantly share code, notes, and snippets.

@mmgaggle
Created April 20, 2016 07:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mmgaggle/c651f53dfa49922d598e15b541a3fb6f to your computer and use it in GitHub Desktop.
Save mmgaggle/c651f53dfa49922d598e15b541a3fb6f to your computer and use it in GitHub Desktop.
Extend Cinder Volume Type QoS Functionality
===========================================
AWS EBS provides a deterministic number of IOPS based on the capacity of the
provisioned volume with Provisioned IOPS. Similarly, the newly announced
throughput optimized volumes provide deterministic throughput based on the
capacity of the provisioned volume. Cinder should, in addition to current per
volume maximums, be able to set lower qos limits based on the provisioned
capacity.
Provisioned IOPS
================
For each volume type, add a new tag: iops_per_gb
if iops_per_gb * volume_size_in_gb <= 20000
total_iops_sec = 20000
else
total_iops_sec = iops_per_gb * volume_size_in_gb
Throughput Optimized
====================
For each volume type, add a new tag: bw_per_gb
if bw_per_gb * volume_size_in_gb <= 500
total_iops_sec = 500
total_bytes_sec = 500 * 1024 * 1024
else
total_iops_sec = bw_per_gb * volume_size_in_gb
total_bytes_sec = bw_per_gb * volume_size_in_gb * 1024 * 1024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment