activity | timestamp | source | source_elapsed
------------------------------------------------------------------------------------------------------+--------------+---------------+----------------
execute_cql3_query | 06:30:52,479 | 192.168.11.23 | 0
Parsing select adid from userlastadevents where userid = '90000012' and type in (1,2,3) LIMIT 10000; | 06:30:52,479 | 192.168.11.23 | 44
Peparing statement | 06:30:52,479 | 192.168.11.23 | 146
Executing single-partition query on userlastadevents | 06:30:52,480 | 192.168.11.23 | 665
Acquiring sstable references | 06:30:52,480 | 192.168.11.23 | 680
Executing single-partition query on userlastadevents | 06:30:52,480 | 192.168.11.23 | 696
Acquiring sstable references | 06:30:52,480 | 192.168.11.23 | 704
Merging memtable tombstones | 06:30:52,480 | 192.168.11.23 | 706
Merging memtable tombstones | 06:30:52,480 | 192.168.11.23 | 721
Bloom filter allows skipping sstable 37398 | 06:30:52,480 | 192.168.11.23 | 758
Bloom filter allows skipping sstable 37426 | 06:30:52,480 | 192.168.11.23 | 762
Bloom filter allows skipping sstable 35504 | 06:30:52,480 | 192.168.11.23 | 768
Bloom filter allows skipping sstable 36671 | 06:30:52,480 | 192.168.11.23 | 771
Merging data from memtables and 0 sstables | 06:30:52,480 | 192.168.11.23 | 777
Merging data from memtables and 0 sstables | 06:30:52,480 | 192.168.11.23 | 780
Executing single-partition query on userlastadevents | 06:30:52,480 | 192.168.11.23 | 782
Acquiring sstable references | 06:30:52,480 | 192.168.11.23 | 791
Read 0 live and 0 tombstoned cells | 06:30:52,480 | 192.168.11.23 | 797
Read 0 live and 0 tombstoned cells | 06:30:52,480 | 192.168.11.23 | 800
Merging memtable tombstones | 06:30:52,480 | 192.168.11.23 | 815
Bloom filter allows skipping sstable 37432 | 06:30:52,480 | 192.168.11.23 | 857
Bloom filter allows skipping sstable 36918 | 06:30:52,480 | 192.168.11.23 | 866
Merging data from memtables and 0 sstables | 06:30:52,480 | 192.168.11.23 | 874
Read 0 live and 0 tombstoned cells | 06:30:52,480 | 192.168.11.23 | 898
Request complete | 06:30:52,479 | 192.168.11.23 | 990
上面是来自cassandra cqlsh的单个查询的跟踪输出,但是我不理解一些条目,首先是“source_elapsed”列是什么意思,它是指执行特定任务所经过的时间还是累计时间已完成此任务。第二个“时间戳”不保持像“请求完成”时间戳这样的时间戳是06:30:52,479,但“合并来自memtables和0 sstables的数据”是06:30:52,480,这是假设发生得更早但时间戳显示它发生在以后。
也无法理解一些活动,
执行单分区查询 - 这不是指整个任务整体还是起点?它包括哪些工作?为什么要重复三次?是否链接到复制因子。
获取sstable引用 - 它是什么意思,是否检查所有sstable的bloom过滤器是否包含我们搜索的特定键?然后在“分区索引”的帮助下找到数据文件中的引用。
Bloom过滤器允许跳过sstable - 什么时候发生?怎么会发生?找到稳定的参考资料需要相同的时间。
请求完成 - 这是什么意思?它是终点线还是需要花费大量时间的一些工作?
答案 0 :(得分:4)
您是否看到了解释不同跟踪方案的request tracing in Cassandra链接?
source_elapsed
:是特定节点上的累积执行时间(如果您检查上面的链接会更清楚)Executing single-partition query
:(似乎代表)开始时间Request complete
:已完成此请求的所有工作对于其他人来说,你最好还是阅读Reads in Cassandra docs,因为这比我在这里总结它要详细得多。