Skip to content

Instantly share code, notes, and snippets.

@rluisr
Created May 22, 2020
Embed
What would you like to do?
Redis failover test
#!/bin/bash
while :
do
redis-cli -h fqdn -a password ping | grep PONG
if [ $? -eq 0 ]; then
echo "ok"
else
echo "ng"
fi
sleep 1s
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment