2013-07-29 49 views
2

我正在與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. 

我不知道那是監視正道索引速度。這不是很精確,結果看起來不太好...

是否有一些工具可以用來代替這種古老的方法? :)

感謝

+0

都能跟得上。你有檢查日誌併爲此生成統計信息。 – Jayendra

+0

我在哪裏可以查看日誌和統計信息? – Corentin

+0

Solr日誌可以使用tomcat日誌本身進​​行檢查,如果設置爲debug或INFO,它應該爲每個請求打印索引時間。 – Jayendra

回答