Sync charmhelpers
Refresh charmhelpers with the latest Flamingo/Gazpacho version metadata.
Change-Id: I117c7697066c770ceef3a01fa4efcdba3f2af8ad Signed-off-by: Myles Penner myles.penner@canonical.com
版权所有:中国计算机学会技术支持:开源发展技术委员会
京ICP备13000930号-9
京公网安备 11010802032778号
Overview
OpenStack Swift is a highly available, distributed, eventually consistent object/blob store.
The swift-storage charm deploys Swift’s storage component. The charm’s basic function is to initialise storage devices and manage the container, object, and account services. It works in tandem with the swift-proxy charm, which is used to add proxy nodes.
Usage
Configuration
This section covers common configuration options. See file
config.yamlfor the full list of options, along with their descriptions and default values.zoneThe
zoneoption assigns a storage zone (an integer) to a storage node. A zone is associated with data replicas.block-deviceThe
block-deviceoption specifies the device(s) that will be used on all machines associated with the application. Value types include:The resulting block device(s) will be XFS-formatted and use
/srv/node/<device-name>as a mount point.storage-regionThe
storage-regionoption specifies a storage region (an integer). It is used only for multi-region (global) clusters.Deployment
Let file
swift.yamlcontain the deployment configuration:Deploy the proxy and storage nodes:
Add relations between the proxy node and all storage nodes:
This will result in a three-zone cluster, with each zone consisting of a single storage node, thereby satisfying the replica requirement of three.
Storage capacity is increased by adding swift-storage units to a zone. For example, to add two storage nodes to zone ‘3’:
This charm will not balance the storage ring until there are enough storage zones to meet its minimum replica requirement, in this case three.
Appendix Swift usage in the OpenStack Charms Deployment Guide offers in-depth guidance for deploying Swift with charms. In particular, it shows how to set up a multi-region (global) cluster.
Actions
This section covers Juju actions supported by the charm. Actions allow specific operations to be performed on a per-unit basis.
openstack-upgradepauseresumeTo display action descriptions run
juju actions swift-storage.Bugs
Please report bugs on Launchpad.
For general charm questions refer to the OpenStack Charm Guide.