Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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