]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
client: do not send metrics until the MDS rank is ready 52502/head
authorXiubo Li <xiubli@redhat.com>
Thu, 1 Jun 2023 12:00:01 +0000 (20:00 +0800)
committerXiubo Li <xiubli@redhat.com>
Tue, 18 Jul 2023 02:43:28 +0000 (10:43 +0800)
commit10fc2aec9bc8a035a2eaf7c684955d859d8a07d9
treeb152cf1a1a3d04368182ae829363e8b05fe85a70
parentd7c46b9268e3c91d1850241f8c38735e60f34612
client: do not send metrics until the MDS rank is ready

In some cases when there are a lot of clients and these clients
have a lots of known requests need to replay too, the metrics
requests will be dropped by the MDS because the MDS is still in
the clientreplay state, and also the useless metric requests will
slow down MDS.

Fixes: https://tracker.ceph.com/issues/61523
Signed-off-by: Xiubo Li <xiubli@redhat.com>
(cherry picked from commit a423e17d5bbd095af4472c087dbbc6ac0c5e9e61)
src/client/Client.cc