Cloud SQL for PostgreSQL adds high availability and replication
cloudplatform.googleblog.com
cloudplatform.googleblog.com
Their mention of replication makes it sound like they are behaving similarly to RDS' Aurora instances ie. they store data using something like Google Cloud Storage, and replicas all read from the same storage location instead of doing "real" logical replication, and data modifications are handled using copy-on-write.
If anyone can explain, I'd really appreciate it.
The obvious question you're having here is "Won't that be slower?" and the answer is yes it will necessarily be slower due to physics. However on the Google Cloud public Slack (https://gcp-slack.appspot.com), it was mentioned that networking for zone to zone is similar to machine to machine, so this is likely to not be an issue.
If the primary instance fails (either because of machine/rack/zone failure), it will stop sending heartbeats and the failover will try to mount the regional disk and become the primary. Because all writes are synchronously replicated, no data loss occurs, although your service will be unavailable until failover completes.
> Their mention of replication makes it sound like they are behaving similarly to RDS' Aurora instances
I don't think anything this fancy is happening, to my understanding it is just a disk that happens to be synchronously replicated to two zones. Under the covers they may be doing some smart copy-on-write stuff, but that isn't exposed to the user.
From the sound of the blog post they plan to unveil regional disks sometime soon, so we may get more info then.
Someone from Google confirmed this in a comment: "Regional Disks will first be used by managed services like Cloud SQL, but watch for a future announcement about Regional Disks as a public feature".
1) https://azure.microsoft.com/en-us/services/postgresql/
2) http://www.pgconf.asia/JP/wp-content/uploads/2016/12/Postgre...
Urgh. I'm hoping this is a mysql issue and pg doesn't suffer from this.
Would love to use it, but can't use it in beta.