Question-: For which of the below Cassandra stress test tool can be used? A. Determining the schema performance. B. Understanding the database scaling C. For optimizing the data model settings D. Determining the production capacity.
Answer: A,B,C,D
Explanation: Cassandra stress tool is a Java utility which can be used for benchmarking and testing the Cassandra cluster setup. Specifically, Data Modeling. And help in finding the issues with the Data modeling. We can use this tool for stress test the following A. Determining the schema performance. B. Understanding the database scaling C. For optimizing the data model settings D. Determining the production capacity.
Admin only
Question-: Please map the following nodetool subcommands and their usage
A. Nodetool compact B. Nodetool compactionstats C. Nodetool cleanup D. Nodetool flush
Explanation: Nodetool compact: It forces a major compaction on one or more nodes Nodetool compactionstats : You can get the statistics for the compaction Nodetool cleanup : Removes the keyspace and partition key no longer belonging to a node. Nodetool flush: It flushes the one or more tables from the memtable.
Amin only
Question-: Which of the following are all node subcommands? A. gcstats B. gossipinfo C. ring D. tpstats E. node
Answer: A,B,C,D
Explanation: Following are the detail for given command
gcstats : It prints the garbage collection statistics
gossipinfo : Provides the gossip information for the cluster
ring: It displays the status and information about the ring as determined by the node being queried. And using that information you can get the idea of the load balance and if any nodes are down. Wrongly configured nodes can show different rings. It tells you about he node’s address, its datacenter, its rack (or availability zone in case of EC2), Node is up or down. This also shows the amount of data it is owning, but please note that when it says if it owns 100% of data and in your cluster you have replication factor as 3. It means 100/3% of data is owned by this node.
tpstats : It reports the each Cassandra stage by thread pool for example as below - The number of active threads - The number of pending requests waiting to be executed by the this thread pool. - Number of task completed by thread pool. - Number of Blocked requests
gossipinfo: It is for getting the details about the gossip in the cluster.