Database Reference
In-Depth Information
Cassandra Stress Testing
Cassandra stress is a Java-based tool to test server performance under heavy read/write
load. With binary distribution it is available under the $CASSANDRA_HOME/tools/
bin directory. The most commonly used options for stress testing are
Write only
Read only
Search range slice
The stress tool is meant to monitor a database's performance under heavy reads,
heavy writes, and reads via nonprimary key columns. With various available paramet-
ers the user can experiment and analyze Cassandra's capability as per their requirement
using this tool to search all available options with this utility you can use the help op-
tion:
$CASSANDRA_HOME/tools/bin/cassandra-stress -h
Write Mode
Let's start with the default mode, i.e., write mode, where we will perform stress testing
of the Cassandra server using this tool. With this mode we will be creating a column
family with a predefined column size and total number of write operations.
Let's start with a simple write-only mode with a simple command:
$CASSANDRA_HOME/tools/bin/cassandra-stress
The output of this command would be similar to Figure 8-3 .
 
Search WWH ::




Custom Search