ceph pg计算

本文介绍了Ceph中Placement Group (PG) 的计算方法,用于确保数据在集群中的均匀分布。目标PGs per OSD根据集群预期扩展情况选择,如100(不打算扩展)或200(可能扩展)。计算公式为 `(Target PGs per OSD) x (OSD #) x (%Data) / (Size)`。此外,讨论了预定义PG_NUM的常见设置,并强调了PG数量对集群性能和数据持久性的影响。Pool是存储数据的逻辑分区,可以配置副本或EC来增强数据可用性。
摘要由CSDN通过智能技术生成

官网原文:https://ceph.com/pgcalc/

Ceph PGs per Pool Calculator

 

Instructions

  1. Confirm your understanding of the fields by reading through the Key below.
  2. Select a "Ceph Use Case" from the drop down menu.
  3. Adjust the values in the "Green" shaded fields below.
    Tip: Headers can be clicked to change the value throughout the table.
  4. You will see the Suggested PG Count update based on your inputs.
  5. Click the "Add Pool" button to create a new line for a new pool.
  6. Click the icon to delete the specific Pool.
  7. For more details on the logic used and some important details, see the area below the table.
  8. Once all values have been adjusted, click the "Generate Commands" button to get the pool creation commands.

Key

Pool Name

Name of the pool in question. Typical pool names are included below.

Size

Number of replicas the pool will have. Default value of 3 is pre-filled.

OSD #

Number of OSDs which this Pool will have PGs in. Typically, this is the entire Cluster OSD count, but could be less based on CRUSH rules. (e.g. Separate SSD and SATA disk sets)

%Data

This value represents the approximate percentage of data which will be contained in this pool for that specific OSD set. Examples are pre-filled below for guidance.

Target PGs per OSD

This va

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值