Created
July 26, 2016 14:41
-
-
Save tzach/b2cf347a198e63939643a1af910b036e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash -e | |
mkdir report | |
rpm -qa > ./report/rpm.txt | |
journalctl -b > ./report/journalctl.txt | |
df -k > ./report/df.txt | |
netstat > ./report/netstat.txt | |
sar -P ALL > ./report/sar.txt | |
iostat -d 1 10 > ./report/iostat.txt | |
sudo perf record --call-graph dwarf -C 0 -F 99 -p $(ps -C scylla -o pid --no-headers) -g --output ./report/perf.data sleep 10 | |
export report_uuid=$(uuidgen) | |
tar c report | xz > report.tar.xz | |
curl --request PUT --upload-file report.tar.xz "scylladb-users-upload.s3.amazonaws.com/$report_uuid/report.tar.xz" | |
echo $report_uuid |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Sorry I haven't looked at that before, Tzach.
I think iostat should include at least the -x option.
Without -x, we usually don't have important information such as service time and wait times.