]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/balancer: avoid pulling pg_dump twice 32266/head
authorxie xingguo <xie.xingguo@zte.com.cn>
Mon, 16 Dec 2019 05:54:50 +0000 (13:54 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Mon, 16 Dec 2019 06:14:59 +0000 (14:14 +0800)
commit1b4b061ed686d3546d2d2fc40627403e25b45a87
treee05eb2ae19d6908221e4970cc83d2e112d49a3e0
parent25a3c76f1aa1613a5f27a36cb4b09950f38b292f
mgr/balancer: avoid pulling pg_dump twice

For large cluster with thousands of osds/pgs, it may take
seconds even mitutes to refresh the relevant stats.
Since we already have pulling them down at initialization,
make a direct use of them whenever possible.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
src/pybind/mgr/balancer/module.py