There's more…
Some might claim the time between a PgBouncer PAUSE and RESUME counts as an outage. From the perspective of a user waiting for a response from the application, which is in turn waiting for a connection from PgBouncer, this is true.
This is why we strongly recommend automating step 4 to step 10, from the second we PAUSE until we RESUME. Each of these steps requires no interaction, but should be completed so the upgrade is finished safely. Assuming there was no lag, this would mean the wait_slot_confirm_lsn function would immediately return. Sequences should update quickly with synchronize_sequence. The time required to swap a symbolic link for pgbouncer.ini is nearly zero. Calling the drop_subscription function is equally fast. ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access