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 Jeff Courtade <co...@gmail.com> on 2016/04/02 19:06:53 UTC

Reset JMX counters for monitoring without restarting

Hi,

I am putting together some montitors for various things.

The counters seem to be  ... from the beginning of the process.

This makes many of them not so useful for long term monitoring and alerting.

Is there a way to rest the counters without restarting solr or reloading a
core?

For instance: these seem to be from the time the process started.

java -jar /opt/scripts/pkg/cmdline-jmxclient-0.10.3.jar - localhost:9010
solr/collection1:id=org.apache.solr.handler.component.SearchHandler,type=/select
$NAME

avgTimePerRequest.value  363.66010984870064
medianRequestTime.value  1240.4161144999998
75thPcRequestTime.value  1614.2324915
95thPcRequestTime.value  3048.378881099999
99thPcRequestTime.value  5930.183086690001



--
Thanks,

Jeff Courtade
M: 240.507.6116

Re: Reset JMX counters for monitoring without restarting

Posted by Shawn Heisey <ap...@elyograg.org>.
On 4/2/2016 12:27 PM, Jeff Courtade wrote:
> I was hoping there was a way without a core reload.
>
> Do you know what is different with cloud? I need to do this in both.

In cloud mode, using CoreAdmin (which is how you reload a core) is not
recommended at all.  The entire collection (all cores) can be reloaded
with the Collections API, and that is how it should be done.

Thanks,
Shawn


Re: Reset JMX counters for monitoring without restarting

Posted by Jeff Courtade <co...@gmail.com>.
Thanks,

I was hoping there was a way without a core reload.

Do you know what is different with cloud? I need to do this in both.

Jeff Courtade
M: 240.507.6116
On Apr 2, 2016 1:37 PM, "Shawn Heisey" <ap...@elyograg.org> wrote:

> On 4/2/2016 11:06 AM, Jeff Courtade wrote:
> > I am putting together some montitors for various things.
> >
> > The counters seem to be  ... from the beginning of the process.
> >
> > This makes many of them not so useful for long term monitoring and
> alerting.
> >
> > Is there a way to rest the counters without restarting solr or reloading
> a
> > core?
> >
> > For instance: these seem to be from the time the process started.
> >
> > java -jar /opt/scripts/pkg/cmdline-jmxclient-0.10.3.jar - localhost:9010
> >
> solr/collection1:id=org.apache.solr.handler.component.SearchHandler,type=/select
> > $NAME
> >
> > avgTimePerRequest.value  363.66010984870064
> > medianRequestTime.value  1240.4161144999998
> > 75thPcRequestTime.value  1614.2324915
> > 95thPcRequestTime.value  3048.378881099999
> > 99thPcRequestTime.value  5930.183086690001
>
> Some of the information you find in statistics might indeed go back to
> the last Solr start.
>
> The specific stats that you have indicated are most useful over a long
> period of time, ideally for the entire time Solr has been running, but
> if you do want to reset them, you can do so with a core reload.  If
> you're running cloud (doesn't look like you are), then you would reload
> the whole collection, probably not the core.
>
> Thanks,
> Shawn
>
>

Re: Reset JMX counters for monitoring without restarting

Posted by Shawn Heisey <ap...@elyograg.org>.
On 4/2/2016 11:06 AM, Jeff Courtade wrote:
> I am putting together some montitors for various things.
>
> The counters seem to be  ... from the beginning of the process.
>
> This makes many of them not so useful for long term monitoring and alerting.
>
> Is there a way to rest the counters without restarting solr or reloading a
> core?
>
> For instance: these seem to be from the time the process started.
>
> java -jar /opt/scripts/pkg/cmdline-jmxclient-0.10.3.jar - localhost:9010
> solr/collection1:id=org.apache.solr.handler.component.SearchHandler,type=/select
> $NAME
>
> avgTimePerRequest.value  363.66010984870064
> medianRequestTime.value  1240.4161144999998
> 75thPcRequestTime.value  1614.2324915
> 95thPcRequestTime.value  3048.378881099999
> 99thPcRequestTime.value  5930.183086690001

Some of the information you find in statistics might indeed go back to
the last Solr start.

The specific stats that you have indicated are most useful over a long
period of time, ideally for the entire time Solr has been running, but
if you do want to reset them, you can do so with a core reload.  If
you're running cloud (doesn't look like you are), then you would reload
the whole collection, probably not the core.

Thanks,
Shawn


Re: Reset JMX counters for monitoring without restarting

Posted by Jeff Courtade <co...@gmail.com>.
Thanks very much.

Jeff Courtade
M: 240.507.6116
On Apr 2, 2016 3:03 PM, "Otis Gospodnetić" <ot...@gmail.com>
wrote:

> Hi Jeff,
>
> With info that Solr provides in JMX you have to keep track of things
> yourself, do subtractions and counting yourself.
> If you don't feel like reinventing that, see
> https://sematext.com/spm/integrations/solr-monitoring/
>
> Otis
> --
> Monitoring - Log Management - Alerting - Anomaly Detection
> Solr & Elasticsearch Consulting Support Training - http://sematext.com/
>
>
> On Sat, Apr 2, 2016 at 1:06 PM, Jeff Courtade <co...@gmail.com>
> wrote:
>
> > Hi,
> >
> > I am putting together some montitors for various things.
> >
> > The counters seem to be  ... from the beginning of the process.
> >
> > This makes many of them not so useful for long term monitoring and
> > alerting.
> >
> > Is there a way to rest the counters without restarting solr or reloading
> a
> > core?
> >
> > For instance: these seem to be from the time the process started.
> >
> > java -jar /opt/scripts/pkg/cmdline-jmxclient-0.10.3.jar - localhost:9010
> >
> >
> solr/collection1:id=org.apache.solr.handler.component.SearchHandler,type=/select
> > $NAME
> >
> > avgTimePerRequest.value  363.66010984870064
> > medianRequestTime.value  1240.4161144999998
> > 75thPcRequestTime.value  1614.2324915
> > 95thPcRequestTime.value  3048.378881099999
> > 99thPcRequestTime.value  5930.183086690001
> >
> >
> >
> > --
> > Thanks,
> >
> > Jeff Courtade
> > M: 240.507.6116
> >
>

Re: Reset JMX counters for monitoring without restarting

Posted by Otis Gospodnetić <ot...@gmail.com>.
Hi Jeff,

With info that Solr provides in JMX you have to keep track of things
yourself, do subtractions and counting yourself.
If you don't feel like reinventing that, see
https://sematext.com/spm/integrations/solr-monitoring/

Otis
--
Monitoring - Log Management - Alerting - Anomaly Detection
Solr & Elasticsearch Consulting Support Training - http://sematext.com/


On Sat, Apr 2, 2016 at 1:06 PM, Jeff Courtade <co...@gmail.com>
wrote:

> Hi,
>
> I am putting together some montitors for various things.
>
> The counters seem to be  ... from the beginning of the process.
>
> This makes many of them not so useful for long term monitoring and
> alerting.
>
> Is there a way to rest the counters without restarting solr or reloading a
> core?
>
> For instance: these seem to be from the time the process started.
>
> java -jar /opt/scripts/pkg/cmdline-jmxclient-0.10.3.jar - localhost:9010
>
> solr/collection1:id=org.apache.solr.handler.component.SearchHandler,type=/select
> $NAME
>
> avgTimePerRequest.value  363.66010984870064
> medianRequestTime.value  1240.4161144999998
> 75thPcRequestTime.value  1614.2324915
> 95thPcRequestTime.value  3048.378881099999
> 99thPcRequestTime.value  5930.183086690001
>
>
>
> --
> Thanks,
>
> Jeff Courtade
> M: 240.507.6116
>