Reputation: 525
I have a database that is maxing out on CPU. I would like to spin up a read replica so that my services use the replica to read and that removes some of the pressure of the master db.
Upvotes: 1
Views: 767
Reputation: 13187
The Read replica will have to handle a similar level of write traffic as the primary since changes are replicated to it. If your primary driver of CPU load on the primary is write-traffic, chances are that the load will also be relatively high on the replica, or the replication lag will increase.
If your traffic is very read-heavy (which is much more common), the situation should look different.
RDS won't magically do that, you have to refactor your code to direct read-only traffic to the read replica. Sometimes your Entity-Relationship-Framework supports this through configuration, though.
Upvotes: 1