Merge "Add region in swift-ring-builder add"
This commit is contained in:
commit
521ec6b9b1
@ -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::
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user