]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
documentation: adapt PG formula for erasure coded pools 1856/head
authorLoic Dachary <loic@dachary.org>
Fri, 23 May 2014 05:25:37 +0000 (07:25 +0200)
committerLoic Dachary <loic@dachary.org>
Fri, 23 May 2014 05:25:37 +0000 (07:25 +0200)
Signed-off-by: Loic Dachary <loic@dachary.org>
doc/rados/operations/placement-groups.rst

index 127fae9bf534fa35f1c2dbb5b9e494bb58b7d5f1..0fa0f1212cc60b650fa26c2f4b5a864609ee1f6e 100644 (file)
@@ -43,9 +43,13 @@ across your cluster. We recommend approximately 50-100 placement groups per OSD
 to balance out memory and CPU requirements and per-OSD load. For a single pool
 of objects, you can use the following formula::
 
-               (OSDs * 100)
-   Total PGs = ------------
-                 Replicas
+                (OSDs * 100)
+   Total PGs =  ------------
+               OSD per object
+
+Where **OSD per object** is the number of replicas (or pool size) for
+replicated pools or the K+M sum for erasure coded pools (as returned
+by **ceph osd erasure-code-profile get**).
 
 The result should be **rounded up to the nearest power of two.**
 Rounding up is optional, but recommended if you want to ensure that