Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mds: only update the requesting metrics #37654

Merged
merged 3 commits into from
Nov 5, 2020
Merged

Conversation

lxbsz
Copy link
Member

@lxbsz lxbsz commented Oct 13, 2020

Currently for the MDSs without global metrics needed to be refreshed,
the global metric counters will be zero and then after update_rank0,
the previous counters in aggregator will be reset.

Fixes: https://tracker.ceph.com/issues/47844

Checklist

  • References tracker ticket
  • Updates documentation if necessary
  • Includes tests for new functionality or reproducer for bug

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 api
  • jenkins test docs
  • jenkins render docs
  • jenkins test ceph-volume all
  • jenkins test ceph-volume tox

@lxbsz lxbsz requested review from vshankar, batrick and a team October 13, 2020 11:42
@lxbsz lxbsz added the cephfs Ceph File System label Oct 13, 2020
@lxbsz
Copy link
Member Author

lxbsz commented Oct 14, 2020

jenkins test make check

Copy link
Contributor

@mchangir mchangir left a comment

Choose a reason for hiding this comment

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

lgtm

src/include/cephfs/metrics/Types.h Outdated Show resolved Hide resolved
Currently for the MDSs without global metrics needed to be refreshed,
the global metric counters will be zero and then after update_rank0,
the previous counters in aggregator will be reset.

Fixes: https://tracker.ceph.com/issues/47844
Signed-off-by: Xiubo Li <xiubli@redhat.com>
Provide more info in the message.print for metric payloads.

Fixes: https://tracker.ceph.com/issues/47844
Signed-off-by: Xiubo Li <xiubli@redhat.com>
It is hard to distinguish which payload it will be without the
METRIC_TYPE, for example:

20 handle_payload: mds.metrics: session=0x5639299cdf80, hits=7527, misses=693
20 handle_payload: mds.metrics: session=0x5639299cdf80, hits=2285, misses=120

Fixes: https://tracker.ceph.com/issues/47844
Signed-off-by: Xiubo Li <xiubli@redhat.com>
Copy link
Contributor

@vshankar vshankar left a comment

Choose a reason for hiding this comment

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

LGTM

@batrick
Copy link
Member

batrick commented Nov 5, 2020

@batrick batrick merged commit 4b26dd7 into ceph:master Nov 5, 2020
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.

4 participants