RDS Read Instance for Analytics Work. Would this cause performance issues on the DB?

0

If an RDS has a writer and a reader instance. If I then want to complete Analytics work by connecting to the Reader instance. Given that both instances connect to the same DB. Is there a potential to cause performance issues on the DB? Need to think of a worse case scenario where our DA would affect the performance of the Database (which most of the users connect to).

Aws lets you have up to 15 reader instances (with mysql) and we want to start more analytics work. Creating a completely separate Analytics DB would cost more.

  • I know the reader instance has its own CPU and that is separate to the writer instances CPU.

已提問 1 個月前檢視次數 228 次
2 個答案
2
已接受的答案

Read replica in RDS is realized based on the replication function of MySQL. This is achieved by transferring the binary log of the write instance to the reader instance and reproducing it on the reader instance.

In other words, since the read instance exists separately, including the disk, it is not considered to affect the write instance.

https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_ReadRepl.html https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_MySQL.Replication.ReadReplicas.html

profile picture
專家
shibata
已回答 1 個月前
profile picture
專家
已審閱 17 天前
  • Great. This was my research but great to get confirmation. Thanks for the time.

1

Agreed that queries on the read replica will not impact the primary database server, however there is a small risk that if your queries on the read replica max out the CPU that the replication process will slow down in writing updates to the read replica and replication lag will increase (the amount of time the replica is behind the primary database).

If you're using MySQL, have you considered migrating to Amazon Aurora MySQL compatible? Aurora separates the compute and the storage, and the primary and read replica's all reference the same underlying logical storage, so you don't have the issue of heavy reads on a read replica increasing replication latency. See: https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/Aurora.Replication.html

Also, Aurora includes an optional feature (Parallel Query) that speeds up analytical queries by pushing down some of the query processing to the storage layer. See: https://aws.amazon.com/rds/aurora/parallel-query/.

Because of these things, your may benefit significantly by migrating to Aurora.

AWS
已回答 1 個月前
  • We are in fact using Aurora so this is extra good news. Thanks for the time and information.

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南