Minimal downtime major PostgreSQL version upgrades with pg_easy_replicate
1–10 of 63 posts
Re: Minimal downtime major PostgreSQL version upgrades with pg_easy_replicate
#2> The switch is made by putting the user on the source database in READ ONLY mode, so that it is not accepting any more writes and waits for the flush lag to be 0. It is up to user to kick of a rolling restart of your application containers or failover DNS (more on these below in strategies) after the switchover is complete, so that your application isn't sending any read/write requests to the old/source database.
This does mean that there will be a "downtime" during which the DB is in read-only mode, right? I understand this period can be really small, but that depends on how long the app deployment takes.
Re: Minimal downtime major PostgreSQL version upgrades with pg_easy_replicate
#3Zero... data loss maybe?
Re: Minimal downtime major PostgreSQL version upgrades with pg_easy_replicate
#4The title says "zero downtime" but the GitHub tagline says "minimal downtime" Zero... data loss maybe?
> This ensures zero data loss and minimal downtime for the application.
Re: Minimal downtime major PostgreSQL version upgrades with pg_easy_replicate
#5Looks very interesting! > The switch is made by putting the user on the source database in READ ONLY mode, so that it is not accepting any more writes and waits for the flush lag to be 0. It is up to user to kick of a rolling restart of your application containers or failover DNS (more on these below in strategies) after the switchover is complete, so that your application isn't sending any read/write requests to the…
Thats right, it was a typo. Mean't zero data loss and minimal downtime. There are some strategies in the readme like using weighted based DNS failover to reduce the downtime even less without requiring application deployment.
Re: Minimal downtime major PostgreSQL version upgrades with pg_easy_replicate
#6Re: Minimal downtime major PostgreSQL version upgrades with pg_easy_replicate
#7https://jstaf.github.io/posts/pglogical/
pglogical is magic. Keeping an eye on this project for the future, looks great.
Re: Minimal downtime major PostgreSQL version upgrades with pg_easy_replicate
#8Re: Minimal downtime major PostgreSQL version upgrades with pg_easy_replicate
#9Re: Minimal downtime major PostgreSQL version upgrades with pg_easy_replicate
#10Be careful if you have sequences as those are not replicated. https://www.jacobreed.dev/blog/migrate-postgres-instances