]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/cephadm: autotune osd memory
authorSage Weil <sage@newdream.net>
Tue, 4 May 2021 19:56:21 +0000 (15:56 -0400)
committerSage Weil <sage@newdream.net>
Thu, 20 May 2021 23:02:58 +0000 (18:02 -0500)
commit0f1b31b298d43568505ff8e16f742ede39108f11
treec47f70ca4563118fd91bbb1ca63da5236502ce16
parent3d2d640ce12832ed0940c85d224bd73dd28cf024
mgr/cephadm: autotune osd memory

- set osd_memory_target_autotune=true to enable
- tuning is periodic (check every 10m by default)
- tuned values are reflected by osd_memory_target config options scoped
  to the host
- only make a change if it appears that we will affect at least 1 of the
  relevant OSDs
- attempt to clean out conflicting options.  (This is imperfect, since any
  manner of weirdly-scoped config options could be responsible; we only
  attempt to clean out one scoped directly to the osd name.)

Signed-off-by: Sage Weil <sage@newdream.net>
(cherry picked from commit 85ea078787d864bd8ae199f9517a9d2dbaf33c7c)
doc/cephadm/osd.rst
src/pybind/mgr/cephadm/autotune.py [new file with mode: 0644]
src/pybind/mgr/cephadm/inventory.py
src/pybind/mgr/cephadm/module.py
src/pybind/mgr/cephadm/serve.py
src/pybind/mgr/cephadm/tests/fixtures.py
src/pybind/mgr/cephadm/tests/test_autotune.py [new file with mode: 0644]