Skip to content

Instantly share code, notes, and snippets.

@haklein
haklein / map_slow_requests_to_buckets.sh
Created August 5, 2016 18:37 — forked from linuxkidd/map_slow_requests_to_buckets.sh
Provided a ceph.log and ceph osd tree output, this script generates a CSV mapping any 'slow request' entries to their appropriate buckets for identifying common hardware to the slow requests.
#!/bin/bash
if [ -z $2 ]; then
echo
echo "Usage: $(basename $0) <ceph.log> <osd-tree>"
echo
exit 1
fi
if [ ! -e $1 ]; then