为什么在《Datastax Opscenter reports http://www.datastax.com/docs/opscenter/online_help/performance/cluster_metrics#write-request-latency http://www.datastax.com/docs/opscenter/online_help/performance/cf_metrics#cf-local-write-latency》(Datastax Opscenter reportshttp://www.datastax.com/docs/opscenter/online_help/performance/cluster_metrics#write-request-latencyhttp://www.datastax.com/docs/opscenter/online_help/performance/cf_metrics#cf-local-write-latency)中,“写入请求延迟”(4-5毫秒)和“本地写入延迟”(按列系列)(.05ms)之间会有显著差异
上图是针对使用一致性级别1写入的计数器列类型,因此对计数器执行的读操作不应该是延迟的一部分。
发布于 2012-06-29 05:42:52
“写入请求延迟”
该指标从协调器节点的角度跟踪延迟。因此,这是跟踪从协调器节点接收请求,将其转发到正确的副本,然后根据一致性级别等待适当数量的响应的延迟。
“本地写入延迟”
此指标从副本的角度跟踪延迟。它只跟踪从副本从协调器接收写入到将其写入提交日志和memtable并返回的时间。
正如您所看到的,这种差异很容易由节俭开销、网络延迟和一致性级别来解释,这些都包含在协调器报告的延迟中。
https://stackoverflow.com/questions/11248308
复制相似问题