Question : Which of the following are important components to deciding, on which node a replica needs to be kept.
A. Snitches B. replication strategy C. replication factor D. Partitioner E. Gossip
1. A,B 2. B,C 3. C,D 4. D,E 5. A,E
Correct Answer : 1 Explanation: A snitch defines groups of machines into data centers and racks (the topology) that the replication strategy uses to place replicas. A snitch determines which data centers and racks nodes belong to. They inform Cassandra about the network topology so that requests are routed efficiently and allows Cassandra to distribute replicas by grouping machines into data centers and racks. Specifically, the replication strategy places the replicas based on the information provided by the new snitch. All nodes must return to the same rack and data center. Cassandra does its best not to have more than one replica
Question : You have multi-datacenter cluster and a keyspace with, replication factor as . Which of the following will help you to determine best replica for reading.
1. Snitches
2. replication strategy
3. replication factor
4. Partitioner
5. All replicas are equal and can be read from any node. And no need to find best replica to read.
Correct Answer : 1 Explanation: All snitches use a dynamic snitch layer, which monitors performance and chooses the best replica for reading. It is enabled by default and recommended for use in most deployments. Configure dynamic snitch thresholds for each node in the cassandra.yaml configuration file.
The default SimpleSnitch does not recognize data center or rack information. Use it for single-data center deployments or single-zone in public clouds. The GossipingPropertyFileSnitch is recommended for production. It defines a node's data center and rack and uses gossip for propagating this information to other nodes.
Question : You must configure a snitch when you create
1. Keyspace
2. Cluster
3. Table
4. Column Family
Correct Answer : 2 Explanation: A snitch defines groups of machines into data centers and racks (the topology) that the replication strategy uses to place replicas.
You must configure a snitch when you create a cluster. All snitches use a dynamic snitch layer, which monitors performance and chooses the best replica for reading. It is enabled by default and recommended for use in most deployments. Configure dynamic snitch thresholds for each node in the cassandra.yaml configuration file.
The default SimpleSnitch does not recognize data center or rack information. Use it for single-data center deployments or single-zone in public clouds. The GossipingPropertyFileSnitch is recommended for production. It defines a node's data center and rack and uses gossip for propagating this information to other nodes.