]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/DaemonServer: Fix pgp_num throttling min 27875/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:27:58 +0000 (16:27 -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>
src/mgr/DaemonServer.cc

index a12c093fcb904a40ad805284553984276b398397..1b7f0ce1f08b0ab262d805eeb63684f804858b32 100644 (file)
@@ -2568,7 +2568,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();