cinder/cinder/scheduler
Erlon R. Cruz f98c9da944 Overprovisioning Improvements
This is part of the effort to improve Cinder's Thin provisioning
support. As some operators have been facing problems to determinte
what is the best value for the max_over_subscription_ratio, we
add in this patch a mechanism to automatically calculate this value.

The formula used for calculation is:
max_over_subscription_ratio = 20 if provisioned_capacity_gb == 0 else:
max_over_subscription_ratio = 1 + (provisioned_capacity_gb/(
                             total_capacity_gb - free_capacity_gb + 1))

Using this formula, the scheduler will allow the creation of a much
bigger number of volumes at the begginning of the pool's life, and
start to restrict the creation as the free space approaces to 0 or
the reserved limit.

Drivers now can set max_over_subscription_ratio = 'auto' and take
benefit of the change. Drivers that somehow use the
max_over_subscription_ratio inside the driver to do any kind of
calculations are incompatible with this new feature and should
get fixed in order to be able to use the feature.

Implements: bp provisioning-improvements
Change-Id: If30bb6276f58532c0f78ac268544a8804008770e
2018-01-25 07:37:17 -02:00
..
evaluator Fix python 3.6 escape char warnings in strings 2017-08-30 17:50:53 +00:00
filters Modify some spelling mistakes in cinder 2017-08-25 04:17:54 -07:00
flows Support create volume from backup 2017-11-28 09:16:59 +08:00
weights Remove log translations 2017-03-19 14:59:57 +00:00
__init__.py Files with no code must be left completely empty 2016-09-28 16:29:30 +07:00
base_filter.py Remove log translations 2017-03-19 14:59:57 +00:00
base_handler.py Move oslo-incubator's scheduler module to cinder 2015-11-24 15:49:31 +01:00
base_weight.py Move oslo-incubator's scheduler module to cinder 2015-11-24 15:49:31 +01:00
driver.py Remove unused CG code 2017-03-19 00:49:10 -04:00
filter_scheduler.py Revert volume consumed capacity when rescheduling 2018-01-10 10:29:52 +08:00
host_manager.py Overprovisioning Improvements 2018-01-25 07:37:17 -02:00
manager.py Support create volume from backup 2017-11-28 09:16:59 +08:00
rpcapi.py Support create volume from backup 2017-11-28 09:16:59 +08:00
scheduler_options.py Remove log translations 2017-03-19 14:59:57 +00:00