I want to benchmark my Cassandra Clusters with 1, 2, 3 and 4 instances. So I ran the cassandra-stress tool on one of the nodes. The benchmark shows strange results, see graph below (--> the one-node cluster has more ops/sek than the 2-/3-/4-node cluster when few threads).
My results (x-axis=threads, y-axis=ops/sek, dataset=nodes in cluster (1, 2, 3, 4):
Compared to the results from this benchmark site, my results seem not to be correct.
My question now is: Do I use the tool correctly if I run the following command on one machine of the cluster:
cassandra-stress write
I also tried this without any effect:
cassandra-stress write -node ip1,ip2,...
See also my other question here. Thank you!
-- EDIT: Solution by Jim --
Run the cassandra-tool from other EC2-instances outside the C*-cluster, but in same LAN (so you can work with internal ips 10.x.x.x). I launched a 1/2/4 node cluster with 4 separate benchmark-caller nodes. Each of them got one of the following commands:
First writing:
cassandra-stress write n=1000000 cl=one -mode native cql3 -schema keyspace="keyspace1" -pop seq=1..1000000 -node ip1,ip2,ip3,ip4
cassandra-stress write n=1000000 cl=one -mode native cql3 -schema keyspace="keyspace1" -pop seq=1000001..2000000 -node ip1,ip2,ip3,ip4
cassandra-stress write n=1000000 cl=one -mode native cql3 -schema keyspace="keyspace1" -pop seq=2000001..3000000 -node ip1,ip2,ip3,ip4
cassandra-stress write n=1000000 cl=one -mode native cql3 -schema keyspace="keyspace1" -pop seq=3000001..4000000 -node ip1,ip2,ip3,ip4
Then reading this data with read command:
cassandra-stress read n=1000000 cl=one -mode native cql3 -schema keyspace="keyspace1" -pop seq=1..1000000 -node ip1,ip2,ip3,ip4
cassandra-stress read n=1000000 cl=one -mode native cql3 -schema keyspace="keyspace1" -pop seq=1000001..2000000 -node ip1,ip2,ip3,ip4
cassandra-stress read n=1000000 cl=one -mode native cql3 -schema keyspace="keyspace1" -pop seq=2000001..3000000 -node ip1,ip2,ip3,ip4
cassandra-stress read n=1000000 cl=one -mode native cql3 -schema keyspace="keyspace1" -pop seq=3000001..4000000 -node ip1,ip2,ip3,ip4
Here the results of the reading
1 Node cluster: 149,000 ops/sec
2 Node cluster: 348,000 ops/sec
4 Node cluster: 480,000 ops/sec
Thank you, Jim!