From: Sage Weil Date: Mon, 29 Apr 2019 21:27:58 +0000 (-0500) Subject: mgr/DaemonServer: Fix pgp_num throttling min X-Git-Tag: v15.1.0~2784^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F27875%2Fhead;p=ceph.git mgr/DaemonServer: Fix pgp_num throttling min 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 --- diff --git a/src/mgr/DaemonServer.cc b/src/mgr/DaemonServer.cc index a12c093fcb90..1b7f0ce1f08b 100644 --- a/src/mgr/DaemonServer.cc +++ b/src/mgr/DaemonServer.cc @@ -2568,7 +2568,7 @@ void DaemonServer::adjust_pgs() } else { double room = std::min(max_misplaced - misplaced_ratio, - misplaced_ratio / 2.0); + max_misplaced / 2.0); unsigned estmax = std::max( (double)p.get_pg_num() * room, 1u); int delta = target - p.get_pgp_num();