[问题]
[解答]
[问题] PG 和 PGP有什么区别?
[解答] PG = Placement Group
PGP = Placement Group for Placement purpose
pg_num = number of placement groups mapped to an OSD
When pg_num is increased for any pool, every PG of this pool splits into half, but they all remain mapped to their parent OSD.
Until this time, Ceph does not start rebalancing. Now, when you increase the pgp_num value for the same pool, PGs start
to migrate from the parent to some other OSD, and cluster rebalancing starts. This is how PGP plays an important role.
[问题] ceph 中 设备类型(crush type name)一共有 11 种
[解答] 它们分别是
0. osd ## 一个 OSD daemon, 通常对应一块磁盘或者SSD。
1. host ## 一台服务器,
2. chassis##
3. rack ## 我觉的是一个机架,里面放很多台服务器
4. row ## 我觉的是一排机架的意思
5. pdu ##机柜电源插座,我觉得是电源故障域
6. pod ##
7. room ## 一个机房(一个单独的房间还是一栋楼)
8. datacenter ## 数据中心
9. region ## 可用区域
10. root ##
[问题] QoS mClock 理论论文
[解答] https://labs.vmware.com/academic/publications/mclock
[问题] int CrushWrapper::adjust_item_weight(CephContext *cct, int id, int weight)
[解答] 为什么要递归呢
[问题] straw
[解答]
[问题] draw box
[解答] 抽签箱
[问题] shrink
[解答] 存储集群收缩
[问题] data shuffle
[解答] 数据迁移
[问题] rack/shelf/cabinet 是怎样的关系?
[解答] 机架, 里面有若干层Shelf, 每个Shelf上可以放一个Server
cabinet 机柜(一个机架里面已经安装有很多个服务器)
Cabinet = Rack + n * Shelf + n * Server
[问题] bucket 在 CRUSH 和 ceph 集群中分别代表什么意思?各有怎样的用途?
[解答] A bucket is a named container of other items (either devices or other buckets).