]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/DaemonServer: Fix pgp_num throttling min 27876/head
authorSage Weil <sage@redhat.com>
Mon, 29 Apr 2019 21:27:58 +0000 (16:27 -0500)
committerSage Weil <sage@redhat.com>
Mon, 29 Apr 2019 21:31:53 +0000 (16:31 -0500)
This was meant to limit the size of any single change to 1/2 of the
max_misplaced (see the comment above!).

Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit a0d63c1a1fc673f094bb309635e98ab4c11354e9)

src/mgr/DaemonServer.cc

index b733668ccbd0d1c18c2749de0420f569c5f175df..7b16a1ffdaaf8b962deda45ddf57823f01158fae 100644 (file)
@@ -2594,7 +2594,7 @@ void DaemonServer::adjust_pgs()
            } else {
              double room =
                std::min<double>(max_misplaced - misplaced_ratio,
-                                misplaced_ratio / 2.0);
+                                max_misplaced / 2.0);
              unsigned estmax = std::max<unsigned>(
                (double)p.get_pg_num() * room, 1u);
              int delta = target - p.get_pgp_num();