client: add option to disable collecting and sending metrics#45370
client: add option to disable collecting and sending metrics#45370vshankar merged 2 commits intoceph:masterfrom
Conversation
gregsfortytwo
left a comment
There was a problem hiding this comment.
If we're trying to match #43974 don't we need to use this option to turn off the metrics collection in the v16.2.4.yaml frag? :)
Yeah, we need it. I missed that file, I thought it was removed and only exists in Pacific branch. |
8daf1ca to
e801db1
Compare
|
Updated this by using the new approach: 1, Add one 2, When opening the sessions the MDSes will fill the metric flags they supported and send back to clients, and then in Clients side the clients will only send the metrics supported by MDSes as default. While users still could force enabling to send all the metrics by enabling the |
|
Just rebased it to the latest code, nothing changed. |
To be careful to enable this because it may crash the old MDSes while upgrading. Fixes: https://tracker.ceph.com/issues/54411 Signed-off-by: Xiubo Li <xiubli@redhat.com>
For the old ceph clusters the clients won't send any metrics to them as default unless they have backported this commit, but there has one option 'client_collect_and_send_global_metrics' still could be used to enable it manually. This will fix the crash bug when upgrading from old ceph clusters, which will crash the MDSes once they receive unknown metrics. Fixes: https://tracker.ceph.com/issues/54411 Signed-off-by: Xiubo Li <xiubli@redhat.com>
|
Just rebased it to the latest code, nothing changed. |
|
jenkins test make check |
comments addressed.
Fixes: https://tracker.ceph.com/issues/54411
Signed-off-by: Xiubo Li xiubli@redhat.com
Checklist
Show available Jenkins commands
jenkins retest this pleasejenkins test classic perfjenkins test crimson perfjenkins test signedjenkins test make checkjenkins test make check arm64jenkins test submodulesjenkins test dashboardjenkins test dashboard cephadmjenkins test apijenkins test docsjenkins render docsjenkins test ceph-volume alljenkins test ceph-volume toxjenkins test windows