通过向 Aurora 数据库添加只读副本来处理更高的读取负载

Handling higher read load by adding read replicas to Aurora DB

我们的系统正在承受更高的负载,这导致数据库 CPU 增加,并且队列深度随着系统流量的增加而增加。

这个系统实际上是一个我们每天同步的读取数据库。向该系统添加只读副本是否有助于扩展数据库并处理增加的读取负载?据我了解,Aurora 会自动分配负载吗?

我们使用的是 db.t3.medium.

的 Aurora Postgres 实例

Would adding read replicas to this system help scaling up the database and handling the increased read load?

如果数据库 CPU 确实是您的瓶颈,那么是的,添加一个只读副本并将您的一些读取分配给它应该会有所帮助。

As I understand it, Aurora automatically distributes the load right?

不是真的。它提供了一个 DNS-Load-Balanced 只读端点。只要您将数据库连接配置为使用该端点进行只读查询,那么它们应该是公平分布的。