我想在Apache Cassandra(客户端-CQLSH)中跟踪和计算读写性能。我知道可以进行追踪,但是我发现没有那么有用。
我希望在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.
跟踪性能的任何帮助都是可观的。
可以通过nodetool tablehistograms
命令获得有关特定密钥空间/表的性能的统计信息(如文档中所述)。
对于与桌子的产生负载,您可以使用与Cassandra一起使用的cassandra-stress
工具。它非常强大,但是需要编写模拟表的正确配置文件。这篇博客文章与官方文档一起很有帮助。