Skip to content

Instantly share code, notes, and snippets.

@odiszapc
Last active August 29, 2015 13:56
Show Gist options
  • Save odiszapc/9107179 to your computer and use it in GitHub Desktop.
Save odiszapc/9107179 to your computer and use it in GitHub Desktop.
# Show how many data will be streamed by rebalance/repair process
# <CF_NAME> - name of your column family
nodetool netstats | grep <CF_NAME> | sed --unbuffered -r 's/ - [0-9]+%//g' | sed --unbuffered -r 's/.+?[0-9]+\///g' | awk '{total = total + $1}END{print total}'
# See more snippets on https://github.com/odiszapc/cassandra-kit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment