Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1825019
  • 博文数量: 276
  • 博客积分: 1574
  • 博客等级: 上尉
  • 技术积分: 2894
  • 用 户 组: 普通用户
  • 注册时间: 2010-05-26 23:23
个人简介

生活的美妙在于,不知道一下秒是惊艳还是伤神,时光流转,珍惜现在的拥有的时光

文章分类

全部博文(276)

文章存档

2017年(17)

2016年(131)

2015年(63)

2013年(2)

2012年(32)

2011年(31)

分类: 服务器与存储

2016-03-13 23:05:25

Ceph clients use the following steps to compute PG IDs.

  1. The client inputs the pool ID and the object ID. (e.g., pool = "liverpool" and object-id = "john")
  2. CRUSH takes the object ID and hashes it.
  3. CRUSH calculates the hash modulo of the number of PGs. (e.g., 58) to get a PG ID.
  4. CRUSH calculates the primary OSD corresponding to the PG ID.
  5. The client gets the pool ID given the pool name (e.g., "liverpool" = 4)
  6. The client prepends the pool ID to the PG ID (e.g., 4.58).
  7. The client performs an object operation (e.g., write, read, delete, etc.) by communicating directly with the Primary OSD in the Acting Set.





参考:https://access.redhat.com/documentation/en/red-hat-ceph-storage/1.3/architecture-guide/chapter-2-storage-cluster-architecture

阅读(1884) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~