Last active
April 7, 2020 22:37
-
-
Save dserodio/2778c346280472b4d63ca5087a4d0b67 to your computer and use it in GitHub Desktop.
Useful for testing downtime while applying modifications in RDS
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
while true; do | |
date -Isec | sed -e 's/+00:00//' | tr '\n' ' ' | |
pg_isready -h YOUR_RDS_INSTANCE.rds.amazonaws.com -U USER -d DB_NAME | |
sleep 1 | |
done | tee connection-test-$(date -Imin).log |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Note: this uses GNU date, macOS
date
doesn't understand-I