Using the Daemon Mode

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 using the -sendto option.

Contrast using cassandra-stress with and without daemon 

  • Insert 10,000,000 rows across two nodes:
    $ 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 mode:
    $ tools/bin/cassandra-stress -node 192.168.1.101,192.168.1.102 n=10000000 -sendto 54.0.0.1