【发布时间】:2023-03-24 18:23:02
【问题描述】:
我正在使用 solr 来索引大量文档。我想监控这些文档的索引速度。
我将我的文档集合生成为 CSV 文件,然后通过 CURL 为我的文档编制索引。 所以我可以得到以毫秒为单位的 QTime。然后我可以通过 CSV 文件进行这个简单的计算来检查索引速度:
索引速度 = 我的 CSV 文件中的文档数 / Qtime
From Solr Documentation :
QTime: The elapsed time (in milliseconds) between the arrival of the request (when the SolrQueryRequest object is created) and the completion of the request handler. It does not include time spent in the response writer formatting/streaming the response to the client.
我不确定这是监控索引速度的正确方法。不是很精确,结果好像也不是很好……
有什么工具可以代替这种古老的方法吗?! :)
谢谢
【问题讨论】:
-
不。您可以检查日志并为此生成统计信息。
-
在哪里可以查看日志和统计信息?
-
Solr 日志可以使用 tomcat 日志本身检查,如果设置为调试或 INFO,它应该打印每个请求的索引时间。
标签: solr