From: Thomas Schneider Date: Mon, 11 Nov 2019 21:21:11 +0000 (+0100) Subject: doc/rados, sample.ceph.conf: pg_num should always be a power of two X-Git-Tag: v15.1.0~862^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=f84ea48b80fb887b5499a14d14c69b707ecbf050;p=ceph-ci.git doc/rados, sample.ceph.conf: pg_num should always be a power of two Signed-off-by: Thomas Schneider --- diff --git a/doc/rados/configuration/pool-pg.conf b/doc/rados/configuration/pool-pg.conf index 0c69d0b9561..096ef1f69f7 100644 --- a/doc/rados/configuration/pool-pg.conf +++ b/doc/rados/configuration/pool-pg.conf @@ -15,6 +15,7 @@ # divided by the number of replicas (i.e., osd pool default size). So for # 10 OSDs and osd pool default size = 4, we'd recommend approximately # (100 * 10) / 4 = 250. + # always use the nearest power of 2 - osd pool default pg num = 250 - osd pool default pgp num = 250 + osd pool default pg num = 256 + osd pool default pgp num = 256 diff --git a/src/sample.ceph.conf b/src/sample.ceph.conf index 8c24bd9cac6..74ffd413420 100644 --- a/src/sample.ceph.conf +++ b/src/sample.ceph.conf @@ -113,6 +113,7 @@ ## divided by the number of replicas (i.e., osd pool default size). So for ## 10 OSDs and osd pool default size = 3, we'd recommend approximately ## (100 * 10) / 3 = 333 + ## always round to the nearest power of 2 # Description: The default number of placement groups for a pool. The # default value is the same as pg_num with mkpool.