Quoting from http://www.datastax.com/docs/0.8/cluster_architecture/replication#networktopologystrategy
:
"Asymmetrical replication groupings are also possible depending on
your use case. For example, you may want to have three replicas per
data center to serve real-time application requests, and then have a
single replica in a separate data center designated to running
analytics."
Have 2 questions :
1. Any example how to configure a topology with 3 replicas in one DC (
with 2 in 1 rack + 1 in another rack ) and one replica in another DC ?
The default networktopologystrategy with rackinferringsnitch will
only give me equal distribution ( 2+2 )
2. I am assuming the reads can go to any of the replicas. Is there a
client which will send query to a node ( in cassandra ring ) which is
closest to the client ?
-Thanks,
Prasenjit
|