You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Dominique De Vito <dd...@gmail.com> on 2016/10/10 15:58:00 UTC

solr perf metric for the last 1 hour (or last 10 mn)

Hi,

It looks like the Solr metric "avgTimePerRequest" is computed with requests
from t0 (startup time).

If so, it's quite useless, for example, for detecting a surge in latency
within the last 10 mn for example.

Is my understanding correct ?

If so, is there a way
(1) to configure Solr to compute all its metrics per period of time (let's
say every 10 mn)
or
(2) to reset metrics through some (?) call
?

Thanks.

Dominique

Re: solr perf metric for the last 1 hour (or last 10 mn)

Posted by Shawn Heisey <ap...@elyograg.org>.
On 10/10/2016 9:58 AM, Dominique De Vito wrote:
> It looks like the Solr metric "avgTimePerRequest" is computed with
> requests from t0 (startup time). 

The percentile metrics (available in 4.1 and later if memory serves) are
generally far more useful than the average time.

> If so, is there a way (1) to configure Solr to compute all its metrics
> per period of time (let's say every 10 mn) 

No, all the metrics (even the percentiles) are calculated since the core
started.

> (2) to reset metrics through some (?) call

Reload the core (collection if running in cloud mode).  This creates a
whole new SolrCore object and all stats reset to zero.

Thanks,
Shawn


Re: solr perf metric for the last 1 hour (or last 10 mn)

Posted by Pushkar Raste <pu...@gmail.com>.
Hi Dominique,
Unfortunately Solr doesn't support metrics you are interested in. You can
however have another process that makes jmx queries on the solr process, do
required transformation and store data in some kind of data store.

Just make sure you are not DDOSing your Solr instances :-)

On Oct 10, 2016 11:58 AM, "Dominique De Vito" <dd...@gmail.com> wrote:

Hi,

It looks like the Solr metric "avgTimePerRequest" is computed with requests
from t0 (startup time).

If so, it's quite useless, for example, for detecting a surge in latency
within the last 10 mn for example.

Is my understanding correct ?

If so, is there a way
(1) to configure Solr to compute all its metrics per period of time (let's
say every 10 mn)
or
(2) to reset metrics through some (?) call
?

Thanks.

Dominique