gpt4 book ai didi

mysql - 本地 mysql 数据库和 AWS RDS 之间的两种方式同步

转载 作者:行者123 更新时间:2023-12-02 01:07:18 24 4
gpt4 key购买 nike

我的问题与 Two way syncing between on-premise SQL Server database and Azure SQL database 非常相似

但我想在我的本地 mysql 和 AWS RDS 实例之间使用它。

所以功能需求是当我在连接到本地服务器(没有互联网)的组织内时,我将访问本地主机数据库(托管在本地服务器上)并且从组织外部我将访问托管在 ec2 上的 websize 并且 ec2 将被连接使用 RDS 数据库。所以这两个数据库都需要继续双向同步。我检查了 AWS DMS,但我认为它遵循主数据库和从数据库方法,在这种方法中我可以从本地更新 RDS。解决方案是什么,如果仅使用 AWS DMS 可能的话,请指导我。

最佳答案

您的问题涵盖了一个非常复杂的主题,在决定解决方案之前需要考虑许多问题。每个时间间隔的数据变化量、网络连接带宽和延迟、网络连接可靠性、数据安全、身份验证、授权、备份和恢复过程、故障转移和容错等因素仅仅是开始。

Amazon 的这篇文章讨论了将本地托管的 MySQL 数据库复制到 RDS。这篇文章的一个有趣花絮是:

The Road to Replication If you have read this far and you have some experience with MySQL replication, you may be thinking “Cool — I can set up replication from my existing database to the cloud, creating a hot spare for easy failover.”

It is best to think of replication as a component of a fail-to-cloud model, rather than as a complete solution in and of itself. Because there’s a network connection in between the master and the slave, you would need to monitor and maintains the connection, track replication delays, and so forth in order to create a robust solution.

Migrate On-Premises MySQL Data to Amazon RDS

关于mysql - 本地 mysql 数据库和 AWS RDS 之间的两种方式同步,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46987638/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com