]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
EC: document the LRC per layer plugin configuration 2781/head
authorYuan Zhou <yuan.zhou@intel.com>
Thu, 23 Oct 2014 05:27:45 +0000 (13:27 +0800)
committerYuan Zhou <yuan.zhou@intel.com>
Thu, 23 Oct 2014 06:32:59 +0000 (14:32 +0800)
LRC now uses Jerasure as the default EC backend. But it is actually
possible to switch to other backend like Isa using the low level
configuration. This commits Adds documents on how to specify the EC
backend in each LRC layer:

Signed-off-by: Yuan Zhou <yuan.zhou@intel.com>
doc/rados/operations/erasure-code-lrc.rst

index 17500c85b57a56c689f8aea704f98830c18693a1..112abfa868b810614a83edc770713ddbdb85df56 100644 (file)
@@ -226,6 +226,36 @@ OSD is in the same rack as the lost chunk.::
                             ]'
         $ ceph osd pool create lrcpool 12 12 erasure LRCprofile
 
+Testing with different Erasure Code backends
+--------------------------------------------
+
+LRC now uses jerasure as the default EC backend. It is possible to
+specify the EC backend/algorithm on a per layer basis using the low
+level configuration. The second argument in layers='[ [ "DDc", "" ] ]'
+is actually an erasure code profile to be used for this level. The
+example below specifies the ISA backend with the cauchy technique to
+be used in the lrcpool.::
+
+        $ ceph osd erasure-code-profile set LRCprofile \
+             plugin=lrc \
+             mapping=DD_ \
+             layers='[ [ "DDc", "plugin=isa technique=cauchy" ] ]'
+        $ ceph osd pool create lrcpool 12 12 erasure LRCprofile
+
+You could also use a different erasure code profile for for each
+layer.::
+
+        $ ceph osd erasure-code-profile set LRCprofile \
+             plugin=lrc \
+             mapping=__DD__DD \
+             layers='[
+                       [ "_cDD_cDD", "plugin=isa technique=cauchy" ],
+                       [ "cDDD____", "plugin=isa" ],
+                       [ "____cDDD", "plugin=jerasure" ],
+                     ]'
+        $ ceph osd pool create lrcpool 12 12 erasure LRCprofile
+
+
 
 Erasure coding and decoding algorithm
 =====================================