简体   繁体   English

Amazon RDS MySQL复制

[英]Amazon RDS MySQL replication

I am struggling to setup replica with Amazon RDS. 我正在努力使用Amazon RDS设置副本。 I want to make RDS as my master but for slave I want to setup my server outside of RDS. 我想将RDS用作主服务器,但对于从属服务器,我想在RDS之外设置服务器。 For now I am setting my slave at EC2. 现在,我将我的从站设置为EC2。 I have checked AWS doc for the information but could not find the exact answer to my question. 我已经检查了AWS文档中的信息,但找不到我的问题的确切答案。

However I did found a blog post which have POC for doing it http://www.ruempler.eu/2013/07/07/replicating-aws-rds-mysql-databases-to-external-slaves/ 但是我确实找到了一个博客文章,其中包含执行此操作的POC http://www.ruempler.eu/2013/07/07/replicating-aws-rds-mysql-databases-to-external-slaves/

But the problem that I facing is I am getting error 但是我面临的问题是我遇到了错误

ERROR: Got error reading packet from server: Slave can not handle replication events with the checksum that master is configured to log 错误:从服务器读取数据包时出错:从设备无法使用配置为master的校验和来处理复制事件

I tried to set binlog_checksum = none at RDS but RDS is not letting me change its config file. 我试图在RDS上设置binlog_checksum = none,但是RDS不允许我更改其配置文件。

Please suggest me folks!! 请给我建议乡亲!

You can use AWS DMS (Data migration service) for this purpose. 您可以为此使用AWS DMS(数据迁移服务)。 It will support replication between any 2 MySQL DBs. 它将支持任何2个MySQL数据库之间的复制。

Please refer our blog: https://medium.com/tensult/cross-account-and-cross-region-rds-mysql-db-replication-part-1-55d307c7ae65 请参考我们的博客: https : //medium.com/tensult/cross-account-and-cross-region-rds-mysql-db-replication-part-1-55d307c7ae65

The question is quite old, but I bumped into it while searching for similar functionality. 这个问题已经很老了,但是我在寻找类似功能时碰到了这个问题。 Amazon supports both replication from an external master and replicating to an external slave these days: 如今,Amazon既支持从外部主服务器复制又支持复制到外部从服务器:

Replication from external master: http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/MySQL.Procedural.Importing.External.Repl.html 从外部主机复制: http : //docs.aws.amazon.com/AmazonRDS/latest/UserGuide/MySQL.Procedural.Importing.External.Repl.html

Replication to external slave: http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/MySQL.Procedural.Exporting.NonRDSRepl.html 复制到外部从站: http : //docs.aws.amazon.com/AmazonRDS/latest/UserGuide/MySQL.Procedural.Exporting.NonRDSRepl.html

Hope this helps future searchers. 希望这对将来的搜索者有所帮助。

It does not appear to be possible as of now (December, 2017). 截至目前(2017年12月)似乎还不可能。

Looking at @walter-heck's second link above, it is actually (another) explanation of "... replication between an external master instance and a DB instance on Amazon RDS". 查看上面的@ walter-heck的第二个链接,它实际上是(另一)解释“ ...外部主实例与Amazon RDS上的数据库实例之间的复制”。

It does not appear you can setup an external replica which connects to a RDS running as master. 您似乎无法设置连接到作为主服务器运行的RDS的外部副本。

AWS does offer this service, of course, however each replica must be within RDS. 当然,AWS确实提供了这项服务,但是每个副本都必须位于RDS内。

With all the service offerings AWS has, one would think this would be possible. 有了AWS提供的所有服务,人们会认为这是可能的。 However, it may not work well with the AWS business model, because you don't pay based on external replicas - you pay based on RDS size. 但是,它可能不适用于AWS业务模型,因为您不是根据外部副本付费的,而是根据RDS大小付费的。

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

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