]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mgr/balancer: optimize 'balancer status detail'
authorLaura Flores <lflores@ibm.com>
Mon, 28 Oct 2024 22:40:13 +0000 (22:40 +0000)
committerLaura Flores <lflores@ibm.com>
Tue, 12 Nov 2024 20:56:39 +0000 (20:56 +0000)
commitf7e13bd9eb4031c492e1904bf04128686cf9526d
tree3a7079f49e1f46dcef21274ddd420ad395b8dfab
parentce34708f700d9ed20815132b7351aafb4e78cef6
mgr/balancer: optimize 'balancer status detail'

Before, we were updating the balancer status by
iterating through all pg upmap entires. This was
affecting the loading time of other mgr modules
on clusters with a large number of pgs (600+).

This can be optimized by simply pulling from
the incremental.

Fixes: https://tracker.ceph.com/issues/68657
Signed-off-by: Laura Flores <lflores@ibm.com>
(cherry picked from commit 31c498da96fa1acc1700515edcd544dead86dab9)
src/pybind/mgr/balancer/module.py