From: Sage Weil Date: Mon, 29 Apr 2019 21:27:58 +0000 (-0500) Subject: mgr/DaemonServer: Fix pgp_num throttling min X-Git-Tag: v14.2.2~173^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=c2ca160b5faed75a0e18e43be53d6e81ad67a0f2;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 (cherry picked from commit a0d63c1a1fc673f094bb309635e98ab4c11354e9) --- diff --git a/src/mgr/DaemonServer.cc b/src/mgr/DaemonServer.cc index b733668ccbd..7b16a1ffdaa 100644 --- a/src/mgr/DaemonServer.cc +++ b/src/mgr/DaemonServer.cc @@ -2594,7 +2594,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();