user1213664
user1213664

Reputation:

How can we monitor SOLR data fetching speed?

I am using SOLR for searching data. Is their any method to identify SOLR data fetching speed?

Upvotes: 3

Views: 200

Answers (3)

Asparagirl
Asparagirl

Reputation: 256

You could also install a server monitoring tool like New Relic which will give you all sorts of stats about Solr.

Upvotes: 0

Paige Cook
Paige Cook

Reputation: 22555

If you mean on monitoring the speed of Solr fetching the data, the response from Solr includes a QTime attribute that you could use.

What is QTime a measure of?

QTime is the elapsed time (in milliseconds) between the arrival of the request (when the SolrQueryRequest object is created) and the completion of the request handler. In other words, it will tell you how long it took to execute your query including things like query parsing, the actual search, faceting etc.

If that will meet your need, I would recommend reading the following post from the Solr User Group where options for monitoring this value were discussed.

Upvotes: 2

shadyyx
shadyyx

Reputation: 16055

You can do it like anything else:

$start = microtime(true);
$data = $solr->query('*');
echo (microtime(true) - $start) . 'seconds';

Upvotes: 1

Related Questions