Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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. Is there any workaround?

like image 382
eric Avatar asked May 03 '11 05:05

eric


People also ask

How many Read replicas can Amazon Aurora have?

Replication with Aurora MySQL Each cluster can have up to five read replicas created this way, each in a different Region.

How many read replicas are supported in a read replica setup?

You can create up to 10 read replicas for a single primary instance.

How many Read replicas for Postgres?

You can create up to 15 read replicas from one source DB instance within the same Region. As of RDS for PostgreSQL 14.1, you can also create up to three levels of read replica in a chain (cascade) from a source DB instance. For more information, see Using cascading read replicas with RDS for PostgreSQL.

How can I distribute read requests across multiple RDS Read replicas?

You can use Amazon Route 53 weighted record sets to distribute requests across your read replicas. Within a Route 53 hosted zone, create individual record sets for each DNS endpoint associated with your read replicas. Then, give them the same weight, and direct requests to the endpoint of the record set.


2 Answers

No. Amazon only allows you to create up to 5 replicas, and need to be launched one by one.

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.

like image 113
Felipe Rojas Avatar answered Sep 29 '22 00:09

Felipe Rojas


Currently there is a workaround that allows to have more than 5 read replicas - by creating read replicas of existing read replicas. It's still up to 5 read replicas per DB, and up to 2 layers (so max 30 read replicas in total).

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

like image 31
semirami Avatar answered Sep 29 '22 00:09

semirami