As per this thread,
rack-awareness is supported in Java Client. Where can I find documentation regarding how to use the feature? In particular, how does a client specify which rack id it prefers to connect?
Secondly, with client rack-awareness, does the client read data from masters as well as replicas in the specified rack?
To clarify the question, consider an example of 2 racks and replication factor of 2, each rack will have masters for half the data and replicas for the other half of the data. My understanding is that normally only the masters are read from, and replicas are used only for rebalance when its master goes down. i.e. replicas are never read from.
If client rack-awareness implies that a client always reads all data from the same rack, does that mean it reads from the masters as well as replicas?