diff options
author | Jenkins <jenkins@review.openstack.org> | 2015-09-16 03:46:36 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2015-09-16 03:46:36 +0000 |
commit | e399dcbdaa2d0e25a34855807c5a9d358d9b431d (patch) | |
tree | ccd5be2e40c489e34cb30969522aee2d30f46c37 | |
parent | 0d9142abd45f189b15eaec1a25464ed7d1859f97 (diff) | |
parent | 530102ae07ea27b4a994e4b1fb2f590700cfef0c (diff) | |
download | swift-e399dcbdaa2d0e25a34855807c5a9d358d9b431d.tar.gz |
Merge "Update EC Support on how to build an EC ring with replicas count"
-rwxr-xr-x | doc/source/overview_erasure_code.rst | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/doc/source/overview_erasure_code.rst b/doc/source/overview_erasure_code.rst index d1b1a5d6a..a8a8e8789 100755 --- a/doc/source/overview_erasure_code.rst +++ b/doc/source/overview_erasure_code.rst @@ -251,9 +251,22 @@ of them will be made of parity data (calculations depending on ec_type). When deciding which devices to use in the EC policy's object ring, be sure to carefully consider the performance impacts. Running some performance benchmarking in a test environment for your configuration is highly recommended -before deployment. Once you have configured your EC policy in `swift.conf` and -created your object ring, your application is ready to start using EC simply by -creating a container with the specified policy name and interacting as usual. +before deployment. + +To create the EC policy's object ring, the only difference in the usage of the +``swift-ring-builder create`` command is the ``replicas`` parameter. The +``replicas`` value is the number of fragments spread across the object servers +associated with the ring; ``replicas`` must be equal to the sum of +``ec_num_data_fragments`` and ``ec_num_parity_fragments``. For example:: + + swift-ring-builder object-1.builder create 10 14 1 + +Note that in this example the ``replicas`` value of 14 is based on the sum of +10 EC data fragments and 4 EC parity fragments. + +Once you have configured your EC policy in `swift.conf` and created your object +ring, your application is ready to start using EC simply by creating a container +with the specified policy name and interacting as usual. .. note:: |