Skip to content

Instantly share code, notes, and snippets.

View araujo-luis's full-sized avatar

Luis Araujo araujo-luis

View GitHub Profile
@yaud
yaud / flushall-cluster.sh
Created November 14, 2016 09:21
Flushall on Redis cluster
#!/bin/sh
NODES=`redis-cli -h $1 cluster nodes | cut -f2 -d' '`
IFS="
"
for node in $NODES; do
echo Flushing node $node...
redis-cli -h ${node%:*} -p ${node##*:} flushall