News for hackers. Stuff that matters.
Re:Fully managed PostgreSQL databases by kamaln7 on Thursday February 14, 2019 @01:59PM (#19164747)
Kamal from DigitalOcean here. With only a primary node and no standby nodes, a failure will cause a new replacement node to be created with its data being a combination of the latest backup and the write-ahead log. This will get you the most recent data possible. Check out this page for more info on auto failover and how it works with the different configurations: https://www.digitalocean.com/docs/databases/resources/high-a...
Re:Fully managed PostgreSQL databases by keypusher on Thursday February 14, 2019 @04:12PM (#19166075)
How is the WAL stored? If there is a problem with the storage, networking, or DC, you will not be able to get the WAL in order to bring up the DB in a new region. Also, the process of replaying WAL since last backup can take a very long time for a high traffic DB, during which time it is going to be completely unavailable.
Re:Fully managed PostgreSQL databases by kamaln7 on Friday February 15, 2019 @10:15AM (#19171512)
The WAL and all backups are stored offsite and are completely handled on our end.

Re: availability, that’s right if you only have a primary node and no standby ones. Like manigandham said, there won’t be any downtime if you have a standby node.

Re:Fully managed PostgreSQL databases by manigandham on Friday February 15, 2019 @12:58AM (#19168788)
That's what a standby server is for, so that it's up to date without replaying the WAL. Nothing unique to DigitalOcean about that.
Re:Fully managed PostgreSQL databases by nh2 on Thursday February 14, 2019 @06:48PM (#19167206)
Thanks, that answers the question on 0 standbys.

Do you also happen to know the answer on synchronous vs asynchronous replication?

Re:Fully managed PostgreSQL databases by kamaln7 on Friday February 15, 2019 @10:00AM (#19171384)
No problem. It’s asynchronous
Re:Fully managed PostgreSQL databases by nh2 on Friday February 15, 2019 @11:34PM (#19177091)
Thanks. Will you offer a synchronous version in the future?

Since asynchronous means that you can lose previously acknowledged writes when the primary node crashes, which forbids many use cases (for example, most things involving money).

And Postgres already offers synchronous replication modes.

Re:Fully managed PostgreSQL databases by kamaln7 on Wednesday February 20, 2019 @09:42AM (#19208144)
No concrete plans for sync replication that I know of. The team is aware of the need for it but there's not much info to share at the moment.