The daemon in larger-scale testing can prevent potential skews in the test results by keeping the JVM warm.
The daemon is only available in tarball installations. Run the daemon from:
install_location/tools/bin/cassandra-stressd start|stop|status [-h <host>]
During stress testing, you can keep the daemon running and send it commands through it using the --send-to option.
- Insert 1,000,000 rows to given
/tools/bin/cassandra-stress -node 192.168.1.101
When the number of rows is not specified, one million rows are inserted.
- Read 1,000,000 rows from given
tools/bin/cassandra-stress read -node 192.168.1.101
- Insert 10,000,000 rows across two
/tools/bin/cassandra-stress -node 192.168.1.101,192.168.1.102 n=10000000
- Insert 10,000,000 rows across two nodes using the daemon
/tools/bin/cassandra-stress -node 192.168.1.101,192.168.1.102 n=10000000 --send-to 188.8.131.52