Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Useful for testing downtime while applying modifications in RDS
while true; do
date -Isec | sed -e 's/+00:00//' | tr '\n' ' '
pg_isready -h -U USER -d DB_NAME
sleep 1
done | tee connection-test-$(date -Imin).log

This comment has been minimized.

Copy link
Owner Author

@dserodio dserodio commented Apr 7, 2020

Note: this uses GNU date, macOS date doesn't understand -I

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.