]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
doc: adjust examples to use 2^n pg_num
authorLars Marowsky-Bree <lmb@suse.com>
Wed, 31 Jul 2019 13:02:25 +0000 (15:02 +0200)
committerLars Marowsky-Bree <lmb@suse.com>
Wed, 31 Jul 2019 13:03:48 +0000 (15:03 +0200)
The examples used pg_num set to 300 or 1000. This misled some users.

Signed-off-by: Lars Marowsky-Bree <lmb@suse.com>
doc/rados/operations/placement-groups.rst

index cffceda9d4759f28bf9b831a298ec4e8a9739ce9..8006d77e0d75ccce64bff482b3b7f14038a26178 100644 (file)
@@ -382,14 +382,15 @@ makes every effort to evenly spread OSDs among all existing Placement
 Groups.
 
 As long as there are one or two orders of magnitude more Placement
-Groups than OSDs, the distribution should be even. For instance, 300
-placement groups for 3 OSDs, 1000 placement groups for 10 OSDs etc.
+Groups than OSDs, the distribution should be even. For instance, 256
+placement groups for 3 OSDs, 512 or 1024 placement groups for 10 OSDs
+etc.
 
 Uneven data distribution can be caused by factors other than the ratio
 between OSDs and placement groups. Since CRUSH does not take into
 account the size of the objects, a few very large objects may create
 an imbalance. Let say one million 4K objects totaling 4GB are evenly
-spread among 1000 placement groups on 10 OSDs. They will use 4GB / 10
+spread among 1024 placement groups on 10 OSDs. They will use 4GB / 10
 = 400MB on each OSD. If one 400MB object is added to the pool, the
 three OSDs supporting the placement group in which the object has been
 placed will be filled with 400MB + 400MB = 800MB while the seven