]> git-server-git.apps.pok.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>
Fri, 1 Nov 2024 22:50:52 +0000 (22:50 +0000)
commit31c498da96fa1acc1700515edcd544dead86dab9
tree1e3321e092343b8b31626dca7e9f8ab02bcd6202
parent4b3747af719708c4b24c0b72f7e74edfe89cd5bf
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>
src/pybind/mgr/balancer/module.py