The rack awareness feature seems great. Are the client libraries aware of it? Is there a way to specify in the client which node group to go to? For example, if I am running on two ec2 availability zones and I have them set up as separate rack groups, can I tell the client api to prefer going to a node on the same availability zone/cluster group?
The distribution is done on the server side based on rack-aware partitioning. Currently the client cannot indicate a preference on which rack group.
Thanks for your reply! Are there any plans for such a feature? As you may be aware on EC2 there could be a couple of millisecond of ping between availability zones so if the client picks the wrong one that can add quite a bit to the response time.
Understood and this is on our radar on how to address correctly.
Hi, Any news about this feature?
What is the benefit of such a feature?
Going to the same AZ as your client will decrease both latency (same data center) as well as cost (aws charges for cross-AZ traffic).
If your servers are far enough to have latency from each other, they shouldn’t be in the same cluster anyway. You would want to use XDR for that.
Rack Aware implies master goes on one rack, replica goes on the other rack. So what you want is all masters on one rack and all replicas on the other. Then all clients will read from one rack always. It may be good for some clients (in that AZ) but always high latency for others (clients from different AZ). I am still not comprehending the value of such a feature. Like Albot says - better solution is to use XDR.