Created
May 22, 2020 09:14
-
-
Save rluisr/ca4e87380aed49903167fe7690e19dc9 to your computer and use it in GitHub Desktop.
Redis failover test
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 | |
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