如何创建 amazon MySQL RDS 实例的镜像并连接到该实例,
我读到亚马逊有 RDS 实例的自动备份和自动恢复,他们有自动备份和数据库快照,所以我想可以连接到数据库快照。
好吧,我只是想连接到我的生产 RDS 实例的镜像,这样我就可以在不影响生产性能的情况下运行繁重的查询。
我无法在亚马逊常见问题解答 (http://aws.amazon.com/rds/mysql/) 中找到
这个问题也没有帮助我理解我是否可以做到以及如何做到 Copying or Replicating Amazon RDS MYSQL weekly
这里还有一个很好的引用:http://aws.amazon.com/rds/faqs/#23但我不知道应该做什么才能连接到这样的实例。
这可能吗?你能解释一下吗?
最佳答案
- 查看数据库实例
- 单击要复制的特定实例
- 点击
实例操作
并选择创建只读副本
。
如果您需要自动创建只读副本,请查看 http://docs.aws.amazon.com/AmazonRDS/latest/CommandLineReference/CLIReference-cmd-CreateDBInstanceReadReplica.html .您可以使用命令行工具来创建将按需创建实例的脚本。
有关亚马逊读取副本的信息,请参阅 http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_ReadRepl.html .
摘录如下:
Updates made to the source DB instance are replicated to the read replica. The read replica handles read-only traffic from your application, which can reduce the load on your source DB instance. Read replicas allow you to elastically scale out beyond the capacity constraints of a single DB instance for read-heavy database workloads.
关于php - 如何创建 amazon MySQL RDS 实例的镜像并连接到它?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19137453/