OSD的pg_num與CephFS

  • 少於5個OSD將pg_num設置為128

  • 在5至10個OSD之間,將pg_num設置為512

  • Between 10 and 20 OSDs set pg_num to 1024

  • Between 20 and 40 OSDs set pg_num to 2048

  • 如果您有超過50個OSD,則需要了解折衷方法以及如何自己計算pg_num值

ceph osd pool set ceph pg_num 4096

ceph osd pool set ceph pg_num 4096 Error ERANGE: pool id 10 pg_num 4096 size 2 would mean 8192 total pgs, which exceeds max 5250 (mon_max_pg_per_osd 250 * num_in_osds 21)

Last updated