]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr: add read balancer support inside the balancer module
authorLaura Flores <lflores@ibm.com>
Thu, 18 Jan 2024 18:57:24 +0000 (18:57 +0000)
committerLaura Flores <lflores@ibm.com>
Sun, 28 Jan 2024 19:15:38 +0000 (13:15 -0600)
commite2ce8ed1ff9846d4efa7de434a56edc66305e767
treea1bceb646b5cbcd6012fdfd13cf2d3146d2326be
parent15bd38eecee66670ad6eb41fac3099bfad69c196
mgr: add read balancer support inside the balancer module

Read balancing may now be managed automatically via the balancer
manager module. Users may choose between two new modes: ``upmap-read``, which
offers upmap and read optimization simultaneously, or ``read``, which may be used
to only optimize reads. Existing balancer commands have also been added to
contain more information about read balancing.

Run the following commands to test the new automatic behavior:
`ceph balancer on` (on by default)
`ceph balancer mode <read|upmap-read>`
`ceph balancer status`

Run the following commands to test the new supervised behavior:
`ceph balancer off`
`ceph balancer mode <read|upmap-read>`
`ceph balancer eval` | `ceph balancer eval <pool-name>`
`ceph balancer eval-verbose` | `ceph balancer eval-verbose <pool-name>`
`ceph balancer optimize <plan-name>`
`ceph balancer show <plan-name>`
`ceph balancer eval <plan-name>`
`ceph balancer execute <plan-name>`

In the balancer module, there is also a new "self_test" function which tests
the module's basic functionality. This test can be triggered with the following
commands:
`ceph mgr module enable selftest`
`ceph mgr self-test module balancer`

Related Trello: https://trello.com/c/sWoKctzL/859-add-read-balancer-support-inside-the-balancer-module
Signed-off-by: Laura Flores <lflores@ibm.com>
doc/dev/balancer-design.rst
doc/rados/operations/balancer.rst
doc/rados/operations/read-balancer.rst
src/mgr/PyOSDMap.cc
src/pybind/mgr/balancer/module.py
src/pybind/mgr/ceph_module.pyi
src/pybind/mgr/mgr_module.py
src/test/cli-integration/balancer/misplaced.t