From: David Zafman Date: Thu, 7 Nov 2019 04:31:21 +0000 (-0800) Subject: osdmaptool: Match default max value of 10 X-Git-Tag: v14.2.8~20^2~18^2~19 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=faa78c28267582509372b191da63b34dd3b871fc;p=ceph.git osdmaptool: Match default max value of 10 Signed-off-by: David Zafman (cherry picked from commit 91bab14ea0e2ec7c94eb758cd76f9a620688725f) --- diff --git a/src/test/cli/osdmaptool/help.t b/src/test/cli/osdmaptool/help.t index e697ba3b71c..e785ebb11ea 100644 --- a/src/test/cli/osdmaptool/help.t +++ b/src/test/cli/osdmaptool/help.t @@ -23,7 +23,7 @@ commands to [default: - for stdout] --upmap calculate pg upmap entries to balance pg layout writing commands to [default: - for stdout] - --upmap-max set max upmap entries to calculate [default: 100] + --upmap-max set max upmap entries to calculate [default: 10] --upmap-deviation max deviation from target [default: .01] --upmap-pool restrict upmap balancing to 1 or more pools diff --git a/src/tools/osdmaptool.cc b/src/tools/osdmaptool.cc index 605c1945a49..ce9f4fa74f2 100644 --- a/src/tools/osdmaptool.cc +++ b/src/tools/osdmaptool.cc @@ -50,7 +50,7 @@ void usage() cout << " commands to [default: - for stdout]" << std::endl; cout << " --upmap calculate pg upmap entries to balance pg layout" << std::endl; cout << " writing commands to [default: - for stdout]" << std::endl; - cout << " --upmap-max set max upmap entries to calculate [default: 100]" << std::endl; + cout << " --upmap-max set max upmap entries to calculate [default: 10]" << std::endl; cout << " --upmap-deviation " << std::endl; cout << " max deviation from target [default: .01]" << std::endl; cout << " --upmap-pool restrict upmap balancing to 1 or more pools" << std::endl; @@ -141,7 +141,7 @@ int main(int argc, const char **argv) bool upmap_save = false; bool health = false; std::string upmap_file = "-"; - int upmap_max = 100; + int upmap_max = 10; float upmap_deviation = .01; std::set upmap_pools; int64_t pg_num = -1;