Skip to content

client: add option to disable collecting and sending metrics - #45370

Merged
vshankar merged 2 commits into
ceph:masterfrom
xiubli:wip-54411
Apr 26, 2022
Merged

vshankar merged 2 commits into
ceph:masterfrom
xiubli:wip-54411

Conversation

@xiubli

@xiubli xiubli commented Mar 14, 2022 •

Copy link
Copy Markdown
Member

Fixes: https://tracker.ceph.com/issues/54411
Signed-off-by: Xiubo Li [email protected]

Checklist

  • Tracker (select at least one)
    • References tracker ticket
    • Very recent bug; references commit where it was introduced
    • New feature (ticket optional)
    • Doc update (no ticket needed)
    • Code cleanup (no ticket needed)
  • Component impact
    • Affects Dashboard, opened tracker ticket
    • Affects Orchestrator, opened tracker ticket
    • No impact that needs to be tracked
  • Documentation (select at least one)
    • Updates relevant documentation
    • No doc update is appropriate
  • Tests (select at least one)
Show available Jenkins commands
  • jenkins retest this please
  • jenkins test classic perf
  • jenkins test crimson perf
  • jenkins test signed
  • jenkins test make check
  • jenkins test make check arm64
  • jenkins test submodules
  • jenkins test dashboard
  • jenkins test dashboard cephadm
  • jenkins test api
  • jenkins test docs
  • jenkins render docs
  • jenkins test ceph-volume all
  • jenkins test ceph-volume tox
  • jenkins test windows

@github-actions github-actions Bot added cephfs Ceph File System common labels Mar 14, 2022
@xiubli
xiubli requested review from a team and vshankar March 14, 2022 06:32
@xiubli xiubli closed this Mar 14, 2022
Comment thread src/common/options/mds-client.yaml.in Resolved

@gregsfortytwo gregsfortytwo left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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? :)

@xiubli

xiubli commented Mar 15, 2022

Copy link
Copy Markdown
Member Author

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.
Will fix it.

Comment thread src/client/Client.cc Resolved
Comment thread src/common/options/mds-client.yaml.in Resolved
Comment thread qa/cephfs/conf/client.yaml Resolved
Comment thread src/pybind/mgr/mgr_util.py Resolved
@xiubli
xiubli force-pushed the wip-54411 branch 2 times, most recently from 8daf1ca to e801db1 Compare March 17, 2022 03:16
@xiubli

xiubli commented Mar 17, 2022 •

Copy link
Copy Markdown
Member Author

Updated this by using the new approach:

1, Add one client_collect_and_send_global_metrics option, which is false as default, with this users can force enabling sending the metrics to MDSes. This will make sure that the clients still could send metrics if users are using the old ceph clusters which are safe to receive unknown metrics.

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 client_collect_and_send_global_metrics option.

@vshankar vshankar left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@xiubli

xiubli commented Apr 14, 2022

Copy link
Copy Markdown
Member Author

Just rebased it to the latest code, nothing changed.

xiubli added 2 commits April 18, 2022 10:18
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 <[email protected]>
@xiubli

xiubli commented Apr 18, 2022

Copy link
Copy Markdown
Member Author

Just rebased it to the latest code, nothing changed.

@xiubli

xiubli commented Apr 18, 2022

Copy link
Copy Markdown
Member Author

jenkins test make check

@vshankar

Copy link
Copy Markdown
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants