]> git.apps.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>
Wed, 12 May 2021 15:02:34 +0000 (11:02 -0400)
commit85ea078787d864bd8ae199f9517a9d2dbaf33c7c
tree6252213bad892284c666407d626af5a394c2a4e3
parent6029a0e256cb10a8c35b3bbdc9a22ad679e6fe03
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>
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]