Slide 23
Slide 23 text
The Revised Idea
1. Stop all non–essential db clients
2. With 5s timeout, catching errors, try:
2.1 PAUSE clients (2s timeout)
2.2 Wait for replica to match master WAL
position
2.3 Promote replica, wait until writable
2.4 Reconfigure pgbouncer to use replica
3. Automatically RESUME clients on
success or failure (worst case: they
continue on the old server)