Skip to main content

Alternative Classes -filter, host manager, etc.- for OpenStack's Cinder

Project description

https://img.shields.io/pypi/v/alt_cinder_sch.svg Documentation Status https://img.shields.io/pypi/pyversions/alt_cinder_sch.svg Updates https://img.shields.io/:license-apache-blue.svg

Alternative Classes such as filters, host managers, etc. for Cinder, the OpenStack Block Storage service.

The main purpose of this library is to illustrate the broad range of possibilities of the Cinder Scheduler provided by its flexible mechanisms.

Currently there’s only 2 interesting features, which are the possibility of changing the default provisioning type on volume creation for volumes that don’t specify the type using the provisioning:type extra spec and an alternative calculation of the free space consumption.

Scheduler’s original approach to space consumption by new volumes is conservative to prevent backends from filling up due to a sudden burst of volume creations.

The alternative approach is more aggressive and is adequate for deployments where the workload is well know and a lot of thin volumes could be requested at the same time.

It’s important to notice that even though the Schedulers will be able to understand provisioining:type extra spec it will depend on the backend if this parameter is actually used or not.

Features

  • Can default capacity calculations to thin or thick.
  • Less conservative approach to free space consumption calculations.

Usage

First we’ll need to have the package installed:

# pip install alt_cinder-sch

Then we’ll have to configure Cinder’s schedulers to use the package:

scheduler_host_manager = alt_cinder_sch.host_managers.HostManagerThin
scheduler_default_filters = AvailabilityZoneFilter,AltCapacityFilter,CapabilitiesFilter
scheduler_driver = alt_cinder_sch.scheduler_drivers.FilterScheduler

And finally restart scheduler services.

History

0.1.1 (2017-07-03)

  • Fix compatibility with older versions
  • Fix thick over subscription value
  • Improve logging

0.1.0 (2017-07-02)

  • First release on PyPI.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
alt_cinder_sch-0.1.1-py2.py3-none-any.whl (12.0 kB) Copy SHA256 hash SHA256 Wheel 2.7 Jul 3, 2017
alt_cinder_sch-0.1.1.tar.gz (17.0 kB) Copy SHA256 hash SHA256 Source None Jul 3, 2017

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page