简体   繁体   中英

Multi-master cross-region postgresql replication

I am new in AWS, currently m working to configure Multi-master cross-region for postgresql. In my scenario i am using postgresql database in RDS, i have two db instances in different region, for example 1st db instance in (US-East) Region and other db instance in (US-West)Region. In each region we configure db-instance as master-slave replications using(Multi-AZ deployment).

So my query is how i configure cross-region between these two db-instance which is in different regions to perform DML(Insert/Update/Delete) opertaion like if i performe insertion 1 instance (database) master then the same updated data replicate on second instance master of different region and vice-versa.?

Please find the attachemnt for scenario diagram

You can try to use bucardo for postgresql replication between 2 RDS instances (Master to slave). Use the following link to setup replication:

https://www.installvirtual.com/how-to-install-bucardo-for-postgres-replication/

I have tested this in single region but you can try to test between different regions.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM