简体   繁体   English

多主跨区域PostgreSQL复制

[英]Multi-master cross-region postgresql replication

I am new in AWS, currently m working to configure Multi-master cross-region for postgresql. 我是AWS的新手,目前正在为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. 在我的场景中,我在RDS中使用postgresql数据库,我在不同区域中有两个数据库实例,例如(美国东部)区域中的第一个数据库实例,以及(美国西部)地区中的其他数据库实例。 In each region we configure db-instance as master-slave replications using(Multi-AZ deployment). 在每个区域中,我们使用(多可用区部署)将db-instance配置为主从复制。

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.? 所以我的查询是如何配置这两个数据库实例之间的跨区域,这些实例位于不同的区域以执行DML(Insert / Update / Delete)操作,就像我执行插入1个实例(数据库)主数据库,然后在同一数据库上复制相同的更新数据一样不同地区的二审大师,反之亦然。

Please find the attachemnt for scenario diagram 请找到方案图的附件

You can try to use bucardo for postgresql replication between 2 RDS instances (Master to slave). 您可以尝试使用bucardo在2个RDS实例(主到从)之间进行PostgreSQL复制。 Use the following link to setup replication: 使用以下链接来设置复制:

https://www.installvirtual.com/how-to-install-bucardo-for-postgres-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. 我已经在单个区域中对此进行了测试,但是您可以尝试在不同区域之间进行测试。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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