]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mgr/cephadm: don't use list_servers to get active mgr host for prometheus SD config 64895/head
authorAdam King <adking@redhat.com>
Wed, 30 Jul 2025 19:51:11 +0000 (15:51 -0400)
committerAdam King <adking@redhat.com>
Tue, 16 Sep 2025 21:07:15 +0000 (17:07 -0400)
commitdd5fc8f6e4951a1c88b6d125151b4e4a9e6515c8
tree64076fc1319f66bd74d2964cfd501fbf87cae220
parent61c2089acc2dfb5f6c676895596758471b303df9
mgr/cephadm: don't use list_servers to get active mgr host for prometheus SD config

Having a lot of calls into list_servers causes issues with
the core ceph mgr on large clusters. Additionally, we were
using it purely to get the active mgr's host here, which
cephadm should be able to do without needing a mgr api call

Signed-off-by: Adam King <adking@redhat.com>
(cherry picked from commit 726bb5a95de7857c220953a1ed26ed3263213c6f)
src/pybind/mgr/cephadm/service_discovery.py
src/pybind/mgr/cephadm/tests/test_service_discovery.py