History

ceph: periodically send perf metrics to MDSes

This will send the caps/read/write/metadata metrics to any available MDS once per second, which will be the same as the userland client. It will skip the MDS sessions which don't support the metric collection, as the MDSs will close socket connections when they get an unknown type message. We can disable the metric sending via the disable_send_metrics module parameter. [ jlayton: fix up endianness bug in ceph_mdsc_send_metrics() ]

Xiubo Li committed 6 years ago

Commit 18f473b1 parent aaf5a477 files · +276 −1Browse files

Showing the changes to include/linux (1 of 7 files). Show all

Unified · Split

include/linux/ceph/ceph_fs.h+1−0
@@ -130,6 +130,7 @@ struct ceph_dir_layout { · 129 unmodified lines
130#define CEPH_MSG_CLIENT_REQUEST 24130#define CEPH_MSG_CLIENT_REQUEST 24
131#define CEPH_MSG_CLIENT_REQUEST_FORWARD 25131#define CEPH_MSG_CLIENT_REQUEST_FORWARD 25
132#define CEPH_MSG_CLIENT_REPLY 26132#define CEPH_MSG_CLIENT_REPLY 26
133#define CEPH_MSG_CLIENT_METRICS 29
133#define CEPH_MSG_CLIENT_CAPS 0x310134#define CEPH_MSG_CLIENT_CAPS 0x310
134#define CEPH_MSG_CLIENT_LEASE 0x311135#define CEPH_MSG_CLIENT_LEASE 0x311
135#define CEPH_MSG_CLIENT_SNAP 0x312136#define CEPH_MSG_CLIENT_SNAP 0x312

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t