Details on how aurora load balances read operations

0

Hello,

I'm interested in learning more about how aurora balances load inside the cluster. I have an Aurora Mysql cluster with only one replica and my app is configured to point all read operations to the read only endpoint.

What I see in the monitoring tab is that the writer instance is under very low load while the replica is under heavy load. Maybe this is influenced by the type of application (lot's of read operations), but what I imagined was that, when on low load, the writer instance would also serve some read operations.

Can someone point me to the correct documentation?

Thanks a lot.

asked 9 months ago331 views
1 Answer
0
Accepted Answer

Hi.

If you check Amazon Aurora connection management it gives the answer you are looking for. Read operations using the reader endpoint only loadbalance between replica instances:

Use the reader endpoint for read operations, such as queries. 
By processing those statements on the read-only Aurora Replicas, 
this endpoint reduces the overhead on the primary instance. 
It also helps the cluster to scale the capacity to handle simultaneous 
SELECT queries, proportional to the number of Aurora Replicas in 
the cluster.
The reader endpoint load-balances connections to available 
Aurora Replicas in an Aurora DB cluster. 
It doesn't load-balance individual queries.
profile picture
EXPERT
answered 9 months ago
  • Thank's, it's very clear.

    Do you happen to know what strategy aurora uses to balance between all read replicas? Does it take cpu usage into account for instance?

  • Hey

    I think it's only uses connection count, that is how I interpret the documentation at least.

  • Hi,

    Aurora Reader endpoint uses DNS Round Robin method in order to distribute new connections across Readers. So if clients have DNS cache, connection will go to specific (cached ip address) Reader while cache is active.

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions