Skip to content

Instantly share code, notes, and snippets.

@rluisr
Created May 22, 2020 09:14
Show Gist options
  • Save rluisr/ca4e87380aed49903167fe7690e19dc9 to your computer and use it in GitHub Desktop.
Save rluisr/ca4e87380aed49903167fe7690e19dc9 to your computer and use it in GitHub Desktop.
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