From 27f06346e26601a2afee98a8261c8be410087aeb Mon Sep 17 00:00:00 2001 From: Florian Haas Date: Thu, 13 Mar 2014 11:32:05 +0100 Subject: [PATCH] doc: fix formatting on PG recommendation Previous commit (047287afbe0ddfaaafd05e9dbf25c1c7dea9a1be) broke formatting on the formula, and also made mixed formula and text oddly, which on second thought didn't look too good. Add the note about the power of two to the following paragraph instead, in prose. Signed-off-by: Florian Haas --- doc/rados/operations/placement-groups.rst | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/doc/rados/operations/placement-groups.rst b/doc/rados/operations/placement-groups.rst index 2f6fe141dbf9..127fae9bf534 100644 --- a/doc/rados/operations/placement-groups.rst +++ b/doc/rados/operations/placement-groups.rst @@ -44,14 +44,15 @@ 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 = ------------ *(rounded up to the nearest power of 2)* + Total PGs = ------------ Replicas -The rounding to the nearest power of two is optional, but recommended -if you want to ensure that all placement groups are roughly the same size. +The result should be **rounded up to the nearest power of two.** +Rounding up is optional, but recommended if you want to ensure that +all placement groups are roughly the same size. As an example, for a cluster with 200 OSDs and a pool size of 3 -replicas, you would estimate your number of PGs as follows: +replicas, you would estimate your number of PGs as follows:: (200 * 100) ----------- = 6667. Nearest power of 2: 8192 -- 2.47.3