apache cassandra中的读写性能计算

时间:2017-12-13 07:43:31

标签: apache cassandra cassandra-3.0

我想在Apache Cassandra(Client - cqlsh)中跟踪和计算READ和WRITE性能。我知道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. 

任何有关跟踪效果的帮助都很明显。

谢谢,
哈利

1 个答案:

答案 0 :(得分:1)

可以通过nodetool tablehistograms命令获取特定键空间/表的性能统计信息(如in documentation所述)。

为了生成对表的加载,您可以使用与Cassandra一起使用的cassandra-stress工具。它非常强大,但需要编写模仿表格的正确配置文件。这个blog postofficial documentation一起非常有用。