apache cassandra 读写性能计算

Read and Write Performance calculation in apache cassandra

我想跟踪和计算 Apache Cassandra(客户端 - cqlsh)中的读写性能。我知道 TRACING ON 可用,但我发现没那么有用。

我希望在 Cassandra 中跟踪以下示例(示例),

I have 3 node Cassandra cluster and I have a table with 1 million entry, I would like to calculate the performance of READ / WRITE in the following way,

1) WRITE - 1 INSERT with 1 million entry available in it.
2) WRITE - 1 UPSERT on one of the entry with 1 million entry available in it.
3) READ - 1 READ from 1 million entry 
4) READ - ALL THE 1 million entry

which involves single partition and multiple partition too. 

对跟踪性能的任何帮助都是可观的。

关于特定 keyspace/table 的性能统计可以通过 nodetool tablehistograms 命令获得(如 in documentation 所述)。

要针对表生成负载,您可以使用与 Cassandra 一起提供的 cassandra-stress 工具。它非常强大,但需要编写模仿您的表的正确配置文件。这个blog post is quite helpful together with official documentation.