Bringing together the Apache Cassandra experts from the community and DataStax.

Want to learn? Have a question? Want to share your expertise? You are in the right place!

Not sure where to begin? Getting Started

 

question

tech_cassandra_stress avatar image
tech_cassandra_stress asked Erick Ramirez answered

Where is cassandra-stress on a DSE docker container?

I couldn't find cassandra-stress in the tools folder.

$ cassandra-stress write n=100000
/bin/sh: 1: cassandra-stress: not found
dsedockercassandra-stress
10 |1000 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

1 Answer

Erick Ramirez avatar image
Erick Ramirez answered

The cassandra-stress utility is located in resources/cassandra/tools/bin with the other tools:

$ ls -1 resources/cassandra/tools/bin/
cassandra.in.sh
cassandra-stress
cassandra-stressd
compaction-stress
disk_cal.py
hash_password
sstabledump
sstableexpiredblockers
sstablelevelreset
sstablemetadata
sstableofflinerelevel
sstablepartitions
sstablepkrewriter
sstablerepairedset
sstablesplit
token-generator

Here's an example run:

$ resources/cassandra/tools/bin/cassandra-stress write n=1
******************** Stress Settings ********************
...

Connected to cluster: Test Cluster, max pending requests per connection 128, max connections per host 8
Datacenter: dc1; Host: localhost/127.0.0.1; Rack: rack1
Created keyspaces. Sleeping 1s for propagation.
Sleeping 2s...
Warming up WRITE with 0 iterations...
Running WRITE with 200 threads for 1 iteration
type       total ops,    op/s,    pk/s,   row/s,    mean,     med,     .95,     .99,    .999,     max,   time,   stderr, errors,  gc: #,  max ms,  sum ms,  sdv ms,      mb
total,             1,       5,       5,       5,  23.650,  23.658,  23.658,  23.658,   23.66,    23.7,    0.2,  0.00000,      0,      0,       0,       0,       0,       0


Results:
Op rate                   :        5 op/s  [WRITE: 5 op/s]
Partition rate            :        5 pk/s  [WRITE: 5 pk/s]
Row rate                  :        5 row/s [WRITE: 5 row/s]
Latency mean              : 23.650 ms [WRITE: 23.7 ms]
Latency median            : 23.658 ms [WRITE: 23.7 ms]
Latency 95th percentile   : 23.658 ms [WRITE: 23.7 ms]
Latency 99th percentile   : 23.658 ms [WRITE: 23.7 ms]
Latency 99.9th percentile : 23.658 ms [WRITE: 23.7 ms]
Latency max               : 23.658 ms [WRITE: 23.7 ms]
Total partitions          :          1 [WRITE: 1]
Total errors              :          0 [WRITE: 0]
Total GC count            : 0
Total GC memory           : 0.000 KiB
Total GC time             :    0.0 seconds
Avg GC time               :    NaN ms
StdDev GC time            :    0.0 ms
Total operation time      : 00:00:00

END

Cheers!

Share
10 |1000 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.