summaryrefslogtreecommitdiffstats
path: root/src/mon/MonCommands.h
diff options
context:
space:
mode:
authorSage Weil <sage@redhat.com>2014-08-06 23:04:51 +0200
committerSage Weil <sage@redhat.com>2014-08-09 03:12:31 +0200
commitc51104684335ca7005a133306b95b92c0ba6d712 (patch)
tree4925a0f8bf8495d268f676e3d38cddd9a236c505 /src/mon/MonCommands.h
parentmon/PGMap: track histogram of pg blocked_by (diff)
downloadceph-c51104684335ca7005a133306b95b92c0ba6d712.tar.xz
ceph-c51104684335ca7005a133306b95b92c0ba6d712.zip
mon: add 'osd blocked-by' command
Print a histogram of how many peers are blocked by each OSD. This is useful for quickly diagnosing which OSDs are broken or slow and preventing peering from completing. In the future, we can populate the pg_stat_t with peer OSDs for more than just peering waits, but this is a useful start. Signed-off-by: Sage Weil <sage@redhat.com>
Diffstat (limited to 'src/mon/MonCommands.h')
-rw-r--r--src/mon/MonCommands.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mon/MonCommands.h b/src/mon/MonCommands.h
index 627546b4f05..10c0e01e920 100644
--- a/src/mon/MonCommands.h
+++ b/src/mon/MonCommands.h
@@ -352,6 +352,9 @@ COMMAND("osd perf", \
"osd", \
"r", \
"cli,rest")
+COMMAND("osd blocked-by", \
+ "print histogram of which OSDs are blocking their peers", \
+ "osd", "r", "cli,rest")
COMMAND("osd getmaxosd", "show largest OSD id", "osd", "r", "cli,rest")
COMMAND("osd find " \
"name=id,type=CephInt,range=0", \