From 322d51de8417142c6ffbf024b198b26069a53f46 Mon Sep 17 00:00:00 2001 From: Vu Tran Date: Wed, 9 Apr 2014 19:59:09 -0400 Subject: swift: add setup package Introduce swift setup package. At boot time, this package setups a simple swift cluster including: * 3 zones * each zone has 1 storage device which are based on loopback devices which the backing files size is controlled by variable SWIFT_BACKING_FILE_SIZE The script /etc/swift/swift_setup.sh is also provided to ease the task of setting up a complicated Swift cluster. It reads a cluster config file, which describes what storage devices are included in what rings, and constructs the cluster. For details of how to use swift_setup.sh and the format of Swift cluster config file please refer to the script's help: $ swift_setup.sh Signed-off-by: Vu Tran --- .../python/python-swift/cluster.conf | 32 ++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 meta-openstack/recipes-devtools/python/python-swift/cluster.conf (limited to 'meta-openstack/recipes-devtools/python/python-swift/cluster.conf') diff --git a/meta-openstack/recipes-devtools/python/python-swift/cluster.conf b/meta-openstack/recipes-devtools/python/python-swift/cluster.conf new file mode 100644 index 0000000..3cab8bd --- /dev/null +++ b/meta-openstack/recipes-devtools/python/python-swift/cluster.conf @@ -0,0 +1,32 @@ +# Swift cluster config file +# +# Each line specifies one storage device with the following format: +# +# , , , , +# +# : full path to a block device or full path to regular +# file which is used for backing up a loopback device. +# If is empty string then this device is +# backed up by a directory in local filesystem. +# : the disk format type, e.g. ext4, xfs... +# : the zone id which this block device belongs to +# : a list (separated by space) ring name ("account", "container", +# or "object") which this device is added to +# : weight of this device in Swift zone +# +# Examples: +# +# /dev/sda1, ext4, 1, account, 1 +# /dev/sda2, ext4, 1, container, 1 +# /dev/sda3, ext4, 1, object, 1 +# /dev/sdb1, ext4, 2, account container object, 1 +# /dev/sdb2, ext4, 2, account container object, 1 +# /dev/sdb3, ext4, 2, account container object, 1 +# , ext4, 1, account container object, 1 +# , ext4, 2, account container object, 1 +# , ext4, 3, account container object, 1 + + +%SWIFT_BACKING_FILE_1%, ext4, 1, account container object, 1 +%SWIFT_BACKING_FILE_2%, ext4, 2, account container object, 1 +%SWIFT_BACKING_FILE_3%, ext4, 3, account container object, 1 -- cgit v1.2.3-54-g00ecf