2013-08-09 21:23:17 +00:00
|
|
|
==============================
|
|
|
|
Erasure Coded Placement Groups
|
|
|
|
==============================
|
2013-07-31 21:38:59 +00:00
|
|
|
|
2013-08-09 21:23:17 +00:00
|
|
|
The documentation of the erasure coding implementation in Ceph was
|
2013-09-22 16:40:48 +00:00
|
|
|
created in July 2013. It is included in Ceph even before erasure coded
|
|
|
|
pools are available because it drives a number of architectural
|
2013-08-09 21:23:17 +00:00
|
|
|
changes. It is meant to be updated to reflect the `progress of these
|
|
|
|
architectural changes <http://tracker.ceph.com/issues/4929>`_, up to
|
|
|
|
the point where it becomes a reference of the erasure coding
|
|
|
|
implementation itself.
|
2013-07-31 21:38:59 +00:00
|
|
|
|
2013-08-20 14:17:10 +00:00
|
|
|
Glossary
|
|
|
|
--------
|
|
|
|
|
|
|
|
*chunk*
|
2013-09-22 16:40:48 +00:00
|
|
|
when the encoding function is called, it returns chunks of the same
|
|
|
|
size. Data chunks which can be concated to reconstruct the original
|
|
|
|
object and coding chunks which can be used to rebuild a lost chunk.
|
|
|
|
|
|
|
|
*chunk rank*
|
|
|
|
the index of a chunk when returned by the encoding function. The
|
|
|
|
rank of the first chunk is 0, the rank of the second chunk is 1
|
|
|
|
etc.
|
2013-08-20 14:17:10 +00:00
|
|
|
|
|
|
|
*stripe*
|
|
|
|
when an object is too large to be encoded with a single call,
|
|
|
|
each set of chunks created by a call to the encoding function is
|
|
|
|
called a stripe.
|
|
|
|
|
|
|
|
*shard|strip*
|
2013-09-22 16:40:48 +00:00
|
|
|
an ordered sequence of chunks of the same rank from the same
|
|
|
|
object. For a given placement group, each OSD contains shards of
|
|
|
|
the same rank. When dealing with objects that are encoded with a
|
|
|
|
single operation, *chunk* is sometime used instead of *shard*
|
|
|
|
because the shard is made of a single chunk.
|
2013-08-20 14:17:10 +00:00
|
|
|
|
2013-09-22 16:40:48 +00:00
|
|
|
The definitions are illustrated as follows:
|
2013-08-20 14:17:10 +00:00
|
|
|
::
|
2013-08-21 16:09:03 +00:00
|
|
|
|
|
|
|
OSD 40 OSD 33
|
2013-08-20 14:17:10 +00:00
|
|
|
+-------------------------+ +-------------------------+
|
|
|
|
| shard 0 - PG 10 | | shard 1 - PG 10 |
|
|
|
|
|+------ object O -------+| |+------ object O -------+|
|
|
|
|
||+---------------------+|| ||+---------------------+||
|
|
|
|
stripe||| chunk 0 ||| ||| chunk 1 ||| ...
|
|
|
|
0 ||| [0,+N) ||| ||| [0,+N) |||
|
|
|
|
||+---------------------+|| ||+---------------------+||
|
|
|
|
||+---------------------+|| ||+---------------------+||
|
|
|
|
stripe||| chunk 0 ||| ||| chunk 1 ||| ...
|
|
|
|
1 ||| [N,+N) ||| ||| [N,+N) |||
|
|
|
|
||+---------------------+|| ||+---------------------+||
|
|
|
|
||+---------------------+|| ||+---------------------+||
|
|
|
|
stripe||| chunk 0 [N*2,+len) ||| ||| chunk 1 [N*2,+len) ||| ...
|
|
|
|
2 ||+---------------------+|| ||+---------------------+||
|
|
|
|
|+-----------------------+| |+-----------------------+|
|
|
|
|
| ... | | ... |
|
|
|
|
+-------------------------+ +-------------------------+
|
|
|
|
|
|
|
|
Table of content
|
|
|
|
----------------
|
|
|
|
|
2013-08-09 21:23:17 +00:00
|
|
|
.. toctree::
|
|
|
|
:maxdepth: 1
|
2013-07-31 21:38:59 +00:00
|
|
|
|
2013-08-09 21:23:17 +00:00
|
|
|
Developer notes <erasure_coding/developer_notes>
|
2013-09-22 16:40:48 +00:00
|
|
|
Jerasure plugin <erasure_coding/jerasure>
|
|
|
|
High level design document <erasure_coding/pgbackend>
|