From 46ec2f0ddd81b4b5b4a61633eada998dcd606c9b Mon Sep 17 00:00:00 2001 From: =?utf8?q?S=C3=A9bastien=20Han?= Date: Tue, 9 Feb 2021 17:24:48 +0100 Subject: [PATCH] rgw: register daemon in service map with more details MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit From now on, the rgw daemon will register in the service map with RADOS client ID. This will give us better visibility when query the Ceph status and also will also us to run multiple rgws with the same cephX user AND to be displayed individually. Previously, using a single cephX user to run multiple gateways was possible but the Ceph status would display a single rgw. Also, in the same situation it will allow us to gather metrics and export them through the ceph-mgr Prometheus exporter. Fixes: https://tracker.ceph.com/issues/49227 Signed-off-by: Sébastien Han --- src/rgw/rgw_rados.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/rgw/rgw_rados.cc b/src/rgw/rgw_rados.cc index 9c66c3dc672..98e24e930a0 100644 --- a/src/rgw/rgw_rados.cc +++ b/src/rgw/rgw_rados.cc @@ -1136,7 +1136,9 @@ int RGWRados::register_to_service_map(const string& daemon_type, const map