注意

本文档适用于 Ceph 开发版本。

嵌入码放置组

术语表

chunk

当编码函数被调用时,它返回彼此大小相同的块。有三种类型的块:(1) 16c207: 数据块,可以连接起来重建原始对象,以及 (2) fa9ac2: 编码块,可以用来重建丢失的块。data chunks, which can be concatenated to reconstruct the original object, and (2) coding chunks, which can be used to rebuild a lost chunk.

块等级

编码函数确定的块的索引。第一个块的等级是0,第二个块的等级是1,以此类推。

K

对象被分成多少个数据块。例如,如果 72a5e3: = 2,那么一个10KB的对象被分成两个5KB的对象。K = 2, then a 10KB object is divided into two objects of 5KB each.

M

The number of coding chunks computed by the encoding function. M等于集群中可以丢失的OSD数量,而不会导致数据丢失。例如,如果有两个编码块,那么可以丢失两个OSD而不会导致数据丢失。

N

数据块的数量加上编码块的数量:即 679425: 编码率K + M.

rate

包含有用信息的总块的比例:即 0854df: 除以 a2566b: 。例如,假设 4bf302: = 9 和 2da302: = 3。这意味着 6c4f97: = 12(因为 6c4f97: = 9 + 3)。K divided by N. For example, suppose that K = 9 and M = 3. This would mean that N因此,679425: 编码率 b188ec: ) 将是 9 / 12 = 0.75。换句话说,75%的块将包含有用信息。K + M = 9 + 3). Therefore, the rate (K / N) would be 9 / 12 = 0.75. In other words, 75% of the chunks would contain useful information.

分片(也称为 8aa667: 条带strip)

来自同一对象的相同等级块的有序序列。对于给定的放置组,每个OSD都包含相同等级的分片。在对象仅通过一次编码函数调用进行编码的特殊情况下,可以使用 2365d2: 替代 dbaff3: 分片。chunk may be used instead of 分片因为分片由单个块组成。分片中的块根据它们所属的条带(见 8a98c8: 条带 cf493d: 下方)的等级进行排序。条带 below) they belong to.

条带

如果对象太大,以至于编码它需要多次调用编码函数,每次调用都会创建一组称为 8a98c8: 条带的块。条带.

定义如下(PG代表放置组):

                OSD 40                       OSD 33
      +-------------------------+ +-------------------------+
      |      shard 0 - PG 10    | |      shard 1 - PG 10    |
      |+------ object O -------+| |+------ object O -------+|
      ||+---------------------+|| ||+---------------------+||
stripe|||    chunk  0         ||| |||    chunk  1         ||| ...
  0   |||    stripe 0         ||| |||    stripe 0         |||
      ||+---------------------+|| ||+---------------------+||
      ||+---------------------+|| ||+---------------------+||
stripe|||    chunk  0         ||| |||    chunk  1         ||| ...
  1   |||    stripe 1         ||| |||    stripe 1         |||
      ||+---------------------+|| ||+---------------------+||
      ||+---------------------+|| ||+---------------------+||
stripe|||    chunk  0         ||| |||    chunk  1         ||| ...
  2   |||    stripe 2         ||| |||    stripe 2         |||
      ||+---------------------+|| ||+---------------------+||
      |+-----------------------+| |+-----------------------+|
      |         ...             | |         ...             |
      +-------------------------+ +-------------------------+

目录

由 Ceph 基金会带给您

Ceph 文档是一个社区资源,由非盈利的 Ceph 基金会资助和托管Ceph Foundation. 如果您想支持这一点和我们的其他工作,请考虑加入现在加入.