简体   繁体   English

Amazon RDS 中是否可以有超过 5 个只读副本?

[英]Is it possible to have more than 5 read replicas in Amazon RDS?

The Amazon RDS FAQ seems to suggest that you can't have more than 5 replicas. Amazon RDS FAQ似乎建议您不能拥有超过 5 个副本。 Is there any workaround?有什么解决方法吗?

No. Amazon only allows you to create up to 5 replicas, and need to be launched one by one.不可以。Amazon 最多只能创建 5 个副本,需要一个一个启动。

If You need more than 5 you can create a Master-slave configuration using EC instances, then you can have as many replicas as you want.如果您需要超过 5 个,您可以使用 EC 实例创建主从配置,然后您可以拥有任意数量的副本。

Currently there is a workaround that allows to have more than 5 read replicas - by creating read replicas of existing read replicas.目前有一种解决方法允许拥有超过 5 个只读副本 - 通过创建现有只读副本的只读副本。 It's still up to 5 read replicas per DB, and up to 2 layers (so max 30 read replicas in total).每个数据库仍然最多 5 个只读副本,最多 2 层(因此总共最多 30 个只读副本)。

To enable read replica to have read replicas, automated backups must be turned on:要使只读副本具有只读副本,必须打开自动备份:

http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_ReadRepl.html#USER_ReadRepl.MySQL http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_ReadRepl.html#USER_ReadRepl.MySQL

Five read replica's are more than enough for most of the times.在大多数情况下,五个只读副本绰绰有余。 More than 5 can impact the performance.超过 5 个会影响性能。

Scale up technique: if you are using m1.xlarge, you can scale up to Quadrapule EXL and get better performance with 5 RR itslef.放大技术:如果您使用 m1.xlarge,您可以放大到 Quadrapule EXL 并使用 5 RR itslef 获得更好的性能。

If your system demands more than 5 you can solve this by refining your architecture in following ways:如果您的系统需要超过 5 个,您可以通过以下方式改进您的架构来解决这个问题:

P1) Functionally partition the DB and have read replica's accordingly P1) 对数据库进行功能分区并相应地拥有只读副本

P2) Offload read traffic to Amazon ElastiCache and DynamoDB P2) 将读取流量分流到 Amazon ElastiCache 和 DynamoDB

One flavor of RDS Engine type - Aurora (for MySQL / PostgreSQL) supports up to 15 read replicas https://docs.amazonaws.cn/en_us/AmazonRDS/latest/AuroraUserGuide/Aurora.Replication.html一种 RDS 引擎类型 - Aurora(适用于MySQL / PostgreSQL)最多支持 15 个只读副本

10 years later, RDS limits can be lifted. 10 年后,可以取消 RDS 限制。 Look for "Yes" in the "Adjustable" column:在“可调整”列中查找“是”:

The usual caveats apply for measuring performance impact of additional replicas on the primary.通常的警告适用于测量附加副本对主要副本的性能影响。

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

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