Skip to content

Instantly share code, notes, and snippets.

View cjrolo's full-sized avatar

Carlos Juzarte Rolo cjrolo

View GitHub Profile
@cjrolo
cjrolo / ccm-cassandra4-beta1.sh
Created July 23, 2020 14:27
CCM Workaround for Cassandra 4 beta
#CCM makes some assumptions about versions, this is a quick and dirty workaround to play with Cassandra 4 Beta
wget http://archive.apache.org/dist/cassandra/4.0-beta1/apache-cassandra-4.0-beta1-bin.tar.gz
tar -xvzf apache-cassandra-4.0-beta1-bin.tar.gz
mv apache-cassandra-4.0-beta1 .ccm/repository/4.0.1
echo "4.0.1" > 4.0.1/0.version.txt
ccm create beta1-testing -v binary:4.0.1 -n 3 -s
"""Extract mean, median and percentiles from `nodetool cfhistogram` output.
Usage:
1. Run this script.
2. Paste in the output from a read or write latency histograms.
3. Press CTRL+D (to close stdin file descriptor).
"""
import sys
import collections