]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
client: do not send metrics until the MDS rank is ready 51850/head
authorXiubo Li <xiubli@redhat.com>
Thu, 1 Jun 2023 12:00:01 +0000 (20:00 +0800)
committerXiubo Li <xiubli@redhat.com>
Thu, 1 Jun 2023 12:00:01 +0000 (20:00 +0800)
commita423e17d5bbd095af4472c087dbbc6ac0c5e9e61
treed8128cffbc8eaae31d62fcb87a0b061eeea3c4fa
parent553a0c9ad1c0098bddb316781379f40ae1fbddfa
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>
src/client/Client.cc