Low level understanding of How ReadFrom.ANY Works? #3125
Replies: 1 comment 1 reply
-
Hey @harshsunil1 , You can read more in the manual on
Every time a read is done a random node is selected.
Not sure what "refreshed" means in this case. There is no balancing done.
Can't see why, but you need to talk to Amazon about that. Important All these settings affect the client side / driver. The different providers might allow different vendor-specific ways to balance the load (either through DNS or some other approach) and we can't help with that. |
Beta Was this translation helpful? Give feedback.
-
I've been using the Redis Lettuce Client with the connection setting configured as follows:
connection.setReadFrom(ReadFrom.LOWEST_LATENCY);
When monitoring the ElastiCache metrics, I noticed that the traffic pattern and CPU usage were not balanced, which led me to change the setting to:
connection.setReadFrom(ReadFrom.ANY);
With this new setting, I observed a more even load distribution, but this also resulted in higher CPU utilization. Could someone help me understand how the load is distributed with these configurations? Specifically:
How is the load distributed between the master and replica nodes when using ANY?
How frequently are the connections refreshed or rebalanced between nodes?
What could be the cause of the increased CPU utilization after switching to ReadFrom.ANY?
Your insights would be greatly appreciated.
Beta Was this translation helpful? Give feedback.
All reactions