]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
cephadm: enable autotune for `osd_memory_target` by default
authorMelissa Li <melissali@redhat.com>
Thu, 23 Dec 2021 21:26:37 +0000 (16:26 -0500)
committerSebastian Wagner <sewagner@redhat.com>
Tue, 18 Jan 2022 11:05:22 +0000 (12:05 +0100)
Enable `osd_memory_target_autotune` on bootstrap with default `autotune_memory_target_ratio` of 0.7

Fixes: https://tracker.ceph.com/issues/51562
Signed-off-by: Melissa Li <melissali@redhat.com>
(cherry picked from commit 811d13116857928a1f58a6a9f0ac30200824592f)

src/cephadm/cephadm

index c49f0b55b376a093a59eab667b18e7724d939881..60c22717558347d9fdc795855fc1ee073a4c1267 100755 (executable)
@@ -4480,6 +4480,10 @@ def command_bootstrap(ctx):
         except Exception:
             logger.info('\nApplying %s to cluster failed!\n' % ctx.apply_spec)
 
+    # enable autotune for osd_memory_target
+    logger.info('Enabling autotune for osd_memory_target')
+    cli(['config', 'set', 'osd', 'osd_memory_target_autotune', 'true'])
+
     logger.info('You can access the Ceph CLI with:\n\n'
                 '\tsudo %s shell --fsid %s -c %s -k %s\n' % (
                     sys.argv[0],