Add region in swift-ring-builder add

In the swift deployment guide, region is missing from the syntax of
adding a new device to the swift-ring-builder.

This patch adds region in the syntax.

Change-Id: I43e247c92d461efd530c0f82ca3daddcb9e2ba5b
Closes-Bug: #1584127
This commit is contained in:
Mohit Motiani 2016-05-20 16:26:15 +00:00
parent c350a481b8
commit 54ed084234

View File

@ -114,17 +114,18 @@ specific partition can be moved in succession (24 is a good value for this).
Devices can be added to the ring with:: Devices can be added to the ring with::
swift-ring-builder <builder_file> add z<zone>-<ip>:<port>/<device_name>_<meta> <weight> swift-ring-builder <builder_file> add r<region>z<zone>-<ip>:<port>/<device_name>_<meta> <weight>
This will add a device to the ring where <builder_file> is the name of the This will add a device to the ring where <builder_file> is the name of the
builder file that was created previously, <zone> is the number of the zone builder file that was created previously, <region> is the number of the region
this device is in, <ip> is the ip address of the server the device is in, the zone is in, <zone> is the number of the zone this device is in, <ip> is
<port> is the port number that the server is running on, <device_name> is the ip address of the server the device is in, <port> is the port number that
the name of the device on the server (for example: sdb1), <meta> is a string the server is running on, <device_name> is the name of the device on the server
of metadata for the device (optional), and <weight> is a float weight that (for example: sdb1), <meta> is a string of metadata for the device (optional),
determines how many partitions are put on the device relative to the rest of and <weight> is a float weight that determines how many partitions are put on
the devices in the cluster (a good starting point is 100.0 x TB on the drive). the device relative to the rest of the devices in the cluster (a good starting
Add each device that will be initially in the cluster. point is 100.0 x TB on the drive).Add each device that will be initially in the
cluster.
Once all of the devices are added to the ring, run:: Once all of the devices are added to the ring, run::