Consider the following Cassandra setup:
- 6 knot ring: A, B, D, E, F, G
- replication rate: 3
- delimiter: RandomPartitioner
- placement strategy: SimpleStrategy
My test column is stored on node B and replicated to nodes D and E.
Now I have several java processes that read my test column through the Hector (Thrift) API using CL.ONE reading
There are two possibilities:
- The Hector forwards all calls to node B, since B is the data master
- Hector will load balance messages for reading through node B, D and E (master and replication). In this case, my test column will be loaded into the cache on each instance of Cassandra.
Which one is 1) or 2)?
Thank you and welcome Maciej
source share