]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr: Change default upmap_max_deviation to 5
authorDavid Zafman <dzafman@redhat.com>
Sat, 14 Dec 2019 01:43:44 +0000 (17:43 -0800)
committerDavid Zafman <dzafman@redhat.com>
Tue, 7 Jan 2020 05:35:19 +0000 (21:35 -0800)
Fixes: https://tracker.ceph.com/issues/43312
Signed-off-by: David Zafman <dzafman@redhat.com>
doc/man/8/osdmaptool.rst
doc/rados/operations/upmap.rst
qa/standalone/mgr/balancer.sh
src/pybind/mgr/balancer/module.py
src/test/cli/osdmaptool/help.t
src/test/cli/osdmaptool/upmap-out.t
src/test/cli/osdmaptool/upmap.t
src/tools/osdmaptool.cc

index cfe52f63f6dfb58f5c3a69819e65a19ef095d67a..81a962a0050aaea8c1118b26cf61daeb69bebce5 100644 (file)
@@ -153,7 +153,7 @@ Options
 
 .. option:: --upmap-deviation <max-deviation>
 
-   max deviation from target [default: 1]
+   max deviation from target [default: 5]
 
 .. option:: --upmap-pool <poolname>
 
index 3fe65ea8d6f33aaeedce7eff1b3c60effb0239e1..8bad0d9592859260454bd008d1be48eb8e8fb34f 100644 (file)
@@ -58,7 +58,7 @@ Upmap entries are updated with an offline optimizer built into ``osdmaptool``.
    If it cannot find any additional changes to make it will stop early
    (i.e., when the pool distribution is perfect).
 
-   The ``max-deviation`` value defaults to `1`.  If an OSD PG count
+   The ``max-deviation`` value defaults to `5`.  If an OSD PG count
    varies from the computed target number by less than or equal
    to this amount it will be considered perfect.
 
index ce38dd1375426b0baf8cd8dfa726e25c2117d208..984b6504ba008003c802e67ec3990404212fcefa 100755 (executable)
@@ -141,6 +141,7 @@ function TEST_balancer2() {
     done
 
     ceph osd set-require-min-compat-client luminous
+    ceph config set mgr mgr/balancer/upmap_max_deviation 1
     ceph balancer mode upmap || return 1
     ceph balancer on || return 1
     ceph config set mgr mgr/balancer/sleep_interval 5
index 2290aa0fe04996f6706cfca5915f2f02a81aaa6d..bbee82ee6a4e9ec05fbd0acede65ef37ec5af2fb 100644 (file)
@@ -313,7 +313,7 @@ class Module(MgrModule):
         {
             'name': 'upmap_max_deviation',
             'type': 'int',
-            'default': 1,
+            'default': 5,
             'min': 1,
             'desc': 'deviation below which no optimization is attempted',
             'long_desc': 'If the number of PGs are within this count then no optimization is attempted',
index 09b1d785518db9611dc0e6b8a3b30ad926ae3c34..136d3b05e89a7638cc2068282072261115bb44f4 100644 (file)
@@ -25,7 +25,7 @@
                              writing commands to <file> [default: - for stdout]
      --upmap-max <max-count> set max upmap entries to calculate [default: 10]
      --upmap-deviation <max-deviation>
-                             max deviation from target [default: 1]
+                             max deviation from target [default: 5]
      --upmap-pool <poolname> restrict upmap balancing to 1 or more pools
      --upmap-save            write modified OSDMap with upmap changes
      --upmap-active          Act like an active balancer, keep applying changes until balanced
index 8a167aba09a9281649828a080c4a70d453e21a8d..02b13ec561b5321b4030fddc70245346e20d1973 100644 (file)
@@ -7,7 +7,7 @@
   marking OSD@147 as out
   writing upmap command output to: c
   checking for upmap cleanups
-  upmap, max-count 11, max deviation 1
+  upmap, max-count 11, max deviation 5
   pools rbd 
   prepared 11/11 changes
   $ cat c
index 8fa1a610313649a7a869a7997179e104b59aea2d..23a5d5d32d4bf61cf8e489fe93df0ccfcd0b39b1 100644 (file)
@@ -6,7 +6,7 @@
   marking all OSDs up and in
   writing upmap command output to: c
   checking for upmap cleanups
-  upmap, max-count 11, max deviation 1
+  upmap, max-count 11, max deviation 5
   pools rbd 
   prepared 11/11 changes
   $ cat c
index b74c91468a6472747657fe3bae1c06776449c35e..fbbcddafc6a9a4dbb01605175bd670f09942b4de 100644 (file)
@@ -54,7 +54,7 @@ void usage()
   cout << "                           writing commands to <file> [default: - for stdout]" << std::endl;
   cout << "   --upmap-max <max-count> set max upmap entries to calculate [default: 10]" << std::endl;
   cout << "   --upmap-deviation <max-deviation>" << std::endl;
-  cout << "                           max deviation from target [default: 1]" << std::endl;
+  cout << "                           max deviation from target [default: 5]" << std::endl;
   cout << "   --upmap-pool <poolname> restrict upmap balancing to 1 or more pools" << std::endl;
   cout << "   --upmap-save            write modified OSDMap with upmap changes" << std::endl;
   cout << "   --upmap-active          Act like an active balancer, keep applying changes until balanced" << std::endl;
@@ -145,7 +145,7 @@ int main(int argc, const char **argv)
   bool health = false;
   std::string upmap_file = "-";
   int upmap_max = 10;
-  int upmap_deviation = 1;
+  int upmap_deviation = 5;
   bool upmap_active = false;
   std::set<std::string> upmap_pools;
   int64_t pg_num = -1;