Sync charmhelpers
Refresh charmhelpers with the latest Flamingo/Gazpacho version metadata.
Change-Id: I26beef73a47c3100b1f6ec88c2e7be0f8e1d30ab Signed-off-by: Myles Penner myles.penner@canonical.com
版权所有:中国计算机学会技术支持:开源发展技术委员会
京ICP备13000930号-9
京公网安备 11010802032778号
Overview
Cinder is the OpenStack block storage (volume) service. Ceph is a unified, distributed storage system designed for excellent performance, reliability, and scalability. Ceph-backed Cinder therefore allows for scalability and redundancy for storage volumes. This arrangement is intended for large-scale production deployments.
The cinder-ceph charm provides a Ceph (RBD) storage backend for Cinder and is used in conjunction with the cinder charm and an existing Ceph cluster (via the ceph-mon or the ceph-proxy charms).
Specialised use cases:
Through the use of multiple application names (e.g. cinder-ceph-1, cinder-ceph-2), multiple Ceph clusters can be associated with a single Cinder deployment.
A variety of storage types can be achieved with a single Ceph cluster by mapping pools with multiple cinder-ceph applications. For instance, different pools could be used for HDD or SSD devices. See option
rbd-pool-namebelow.Usage
Configuration
To display all configuration option information run
juju config <application>. If the application is not deployed then see the charm’s Configure tab in the Charmhub. Finally, the Juju documentation provides general guidance on configuring applications.Ceph pool type
Ceph storage pools can be configured to ensure data resiliency either through replication or by erasure coding. This charm supports both types via the
pool-typeconfiguration option, which can take on the values of ‘replicated’ and ‘erasure-coded’. The default value is ‘replicated’.For this charm, the pool type will be associated with Cinder volumes.
Replicated pools
Replicated pools use a simple replication strategy in which each written object is copied, in full, to multiple OSDs within the cluster.
The
ceph-osd-replication-countoption sets the replica count for any object stored within the ‘cinder-ceph’ rbd pool. Increasing this value increases data resilience at the cost of consuming more real storage in the Ceph cluster. The default value is ‘3’.Erasure coded pools
Erasure coded pools use a technique that allows for the same resiliency as replicated pools, yet reduces the amount of space required. Written data is split into data chunks and error correction chunks, which are both distributed throughout the cluster.
When using erasure coded pools for Cinder volumes two pools will be created: a replicated pool (for storing RBD metadata) and an erasure coded pool (for storing the data written into the RBD). The
ceph-osd-replication-countconfiguration option only applies to the metadata (replicated) pool.Erasure coded pools can be configured via options whose names begin with the
ec-prefix.See Ceph Erasure Coding in the OpenStack Charms Deployment Guide for more information.
Ceph BlueStore compression
This charm supports BlueStore inline compression for its associated Ceph storage pool(s). The feature is enabled by assigning a compression mode via the
bluestore-compression-modeconfiguration option. The default behaviour is to disable compression.The efficiency of compression depends heavily on what type of data is stored in the pool and the charm provides a set of configuration options to fine tune the compression behaviour.
Deployment
The cinder-ceph application requires the cinder application and a Ceph cluster to be present.
First configure Cinder to not use a local block device. Then deploy cinder-ceph, and add a relation to both the cinder and ceph-mon applications:
Additionally, when both the nova-compute and cinder-ceph applications are deployed a relation is needed between them:
Documentation
The OpenStack Charms project maintains two documentation guides:
Bugs
Please report bugs on Launchpad.