You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ignite.apache.org by Raymond Wilson <ra...@trimble.com> on 2021/01/28 19:43:56 UTC

Detecting checkpoints programmatically

I want to make my system detect when a check point has occurred for
monitoring and control purposes.

I found the following events defined in the IA source:

    /**
     * All checkpoint events. This array can be directly passed into
     * {@link IgniteEvents#localListen(IgnitePredicate, int...)} method to
     * subscribe to all checkpoint events.
     *
     * @see CheckpointEvent
     */
    public static final int[] EVTS_CHECKPOINT = {
        EVT_CHECKPOINT_SAVED,
        EVT_CHECKPOINT_LOADED,
        EVT_CHECKPOINT_REMOVED
    };

Are these the appropriate events to listen to?

Thanks,
Raymond.

-- 
<http://www.trimble.com/>
Raymond Wilson
Solution Architect, Civil Construction Software Systems (CCSS)
11 Birmingham Drive | Christchurch, New Zealand
raymond_wilson@trimble.com

<https://worksos.trimble.com/?utm_source=Trimble&utm_medium=emailsign&utm_campaign=Launch>

Re: Re[2]: Detecting checkpoints programmatically

Posted by Maxim Muzafarov <mm...@apache.org>.
Hello Raymon,

Is it possible for your case writing a custom MetricExporterSpi [1]? So all
these checkpoint metrics [2] will be exported to your monitoring system.

It is also possible to get all metrics through the console [3].

[1]
https://github.com/apache/ignite/blob/master/modules/core/src/main/java/org/apache/ignite/internal/processors/metric/PushMetricsExporterAdapter.java
[2] https://issues.apache.org/jira/browse/IGNITE-13845
[3] https://issues.apache.org/jira/browse/IGNITE-13488

On Fri, 29 Jan 2021 at 09:15, Zhenya Stanilovsky <ar...@mail.ru> wrote:

> hi, check these links.
> [1] https://ignite.apache.org/docs/latest/monitoring-metrics/metrics
> [2]
> https://www.zylk.net/en/web-2-0/blog/-/blogs/kibana-dashboard-for-monitoring-liferay-jvm-via-jmx
>
>
>
> Hi Zhenya,
>
> It seems those events are not so useful as you suggest, [2]
> In the case of [1], how are these events accessible from a C# Ignite
> client?
>
> We don't currently use zabbix, but do use fluentd/kibana.
>
> Thanks,
> Raymond.
>
>
>
> On Fri, Jan 29, 2021 at 4:54 PM Zhenya Stanilovsky <arzamas123@mail.ru
> <//...@mail.ru>> wrote:
>
>
> hi ! hope this would be helpful [1].
> Mentioned events is other one [2] = not useful for you.
> Also zabbix can parse the logs, you can obtain all cp info there.
>
> [1] https://issues.apache.org/jira/browse/IGNITE-13845
> [2]
> https://ignite.apache.org/releases/latest/javadoc/org/apache/ignite/spi/checkpoint/CheckpointSpi.html
>
>
>
> I want to make my system detect when a check point has occurred for
> monitoring and control purposes.
>
> I found the following events defined in the IA source:
>
>     /**
>      * All checkpoint events. This array can be directly passed into
>      * {@link IgniteEvents#localListen(IgnitePredicate, int...)} method to
>      * subscribe to all checkpoint events.
>      *
>      * @see CheckpointEvent
>      */
>     public static final int[] EVTS_CHECKPOINT = {
>         EVT_CHECKPOINT_SAVED,
>         EVT_CHECKPOINT_LOADED,
>         EVT_CHECKPOINT_REMOVED
>     };
>
> Are these the appropriate events to listen to?
>
> Thanks,
> Raymond.
>
> --
> <http://www.trimble.com/>
> Raymond Wilson
> Solution Architect, Civil Construction Software Systems (CCSS)
> 11 Birmingham Drive | Christchurch, New Zealand
> raymond_wilson@trimble.com
> <ht...@trimble.com>
>
>
>
> <https://worksos.trimble.com/?utm_source=Trimble&utm_medium=emailsign&utm_campaign=Launch>
>
>
>
>
>
>
>
>
> --
> <http://www.trimble.com/>
> Raymond Wilson
> Solution Architect, Civil Construction Software Systems (CCSS)
> 11 Birmingham Drive | Christchurch, New Zealand
> raymond_wilson@trimble.com
> <//...@trimble.com>
>
>
>
> <https://worksos.trimble.com/?utm_source=Trimble&utm_medium=emailsign&utm_campaign=Launch>
>
>
>
>
>
>

Re[2]: Detecting checkpoints programmatically

Posted by Zhenya Stanilovsky <ar...@mail.ru>.
hi, check these links.
[1]  https://ignite.apache.org/docs/latest/monitoring-metrics/metrics
[2]  https://www.zylk.net/en/web-2-0/blog/-/blogs/kibana-dashboard-for-monitoring-liferay-jvm-via-jmx
 
 
>Hi Zhenya,
> 
>It seems those events are not so useful as you suggest, [2]
>In the case of [1], how are these events accessible from a C# Ignite client?
> 
>We don't currently use zabbix, but do use fluentd/kibana.
> 
>Thanks,
>Raymond.
> 
>   
>On Fri, Jan 29, 2021 at 4:54 PM Zhenya Stanilovsky < arzamas123@mail.ru > wrote:
>>
>>hi ! hope this would be helpful [1].
>>Mentioned events is other one [2] = not useful for you.
>>Also zabbix can parse the logs, you can obtain all cp info there.
>> 
>>[1]  https://issues.apache.org/jira/browse/IGNITE-13845
>>[2]  https://ignite.apache.org/releases/latest/javadoc/org/apache/ignite/spi/checkpoint/CheckpointSpi.html
>>   
>>>I want to make my system detect when a check point has occurred for monitoring and control purposes.
>>> 
>>>I found the following events defined in the IA source:
>>> 
>>>    /**
>>>     * All checkpoint events. This array can be directly passed into
>>>     * { @link   IgniteEvents # localListen(IgnitePredicate, int...) } method to
>>>     * subscribe to all checkpoint events.
>>>     *
>>>     *  @see  CheckpointEvent
>>>     */
>>>     public   static   final   int []  EVTS_CHECKPOINT  = {
>>>        EVT_CHECKPOINT_SAVED,
>>>        EVT_CHECKPOINT_LOADED,
>>>         EVT_CHECKPOINT_REMOVED
>>>    };
>>> 
>>>Are these the appropriate events to listen to?
>>> 
>>>Thanks,
>>>Raymond.
>>>  --
>>>
>>>Raymond Wilson
>>>Solution Architect, Civil Construction Software Systems (CCSS)
>>>11 Birmingham Drive |  Christchurch, New Zealand
>>>raymond_wilson@trimble.com
>>>         
>>> 
>> 
>> 
>> 
>>  
> 
>  --
>
>Raymond Wilson
>Solution Architect, Civil Construction Software Systems (CCSS)
>11 Birmingham Drive |  Christchurch, New Zealand
>raymond_wilson@trimble.com
>         
> 
 
 
 
 

Re: Detecting checkpoints programmatically

Posted by Raymond Wilson <ra...@trimble.com>.
Hi Zhenya,

It seems those events are not so useful as you suggest, [2]
In the case of [1], how are these events accessible from a C# Ignite client?

We don't currently use zabbix, but do use fluentd/kibana.

Thanks,
Raymond.



On Fri, Jan 29, 2021 at 4:54 PM Zhenya Stanilovsky <ar...@mail.ru>
wrote:

>
> hi ! hope this would be helpful [1].
> Mentioned events is other one [2] = not useful for you.
> Also zabbix can parse the logs, you can obtain all cp info there.
>
> [1] https://issues.apache.org/jira/browse/IGNITE-13845
> [2]
> https://ignite.apache.org/releases/latest/javadoc/org/apache/ignite/spi/checkpoint/CheckpointSpi.html
>
>
> I want to make my system detect when a check point has occurred for
> monitoring and control purposes.
>
> I found the following events defined in the IA source:
>
>     /**
>      * All checkpoint events. This array can be directly passed into
>      * {@link IgniteEvents#localListen(IgnitePredicate, int...)} method to
>      * subscribe to all checkpoint events.
>      *
>      * @see CheckpointEvent
>      */
>     public static final int[] EVTS_CHECKPOINT = {
>         EVT_CHECKPOINT_SAVED,
>         EVT_CHECKPOINT_LOADED,
>         EVT_CHECKPOINT_REMOVED
>     };
>
> Are these the appropriate events to listen to?
>
> Thanks,
> Raymond.
>
> --
> <http://www.trimble.com/>
> Raymond Wilson
> Solution Architect, Civil Construction Software Systems (CCSS)
> 11 Birmingham Drive | Christchurch, New Zealand
> raymond_wilson@trimble.com
> <//...@trimble.com>
>
>
>
> <https://worksos.trimble.com/?utm_source=Trimble&utm_medium=emailsign&utm_campaign=Launch>
>
>
>
>
>
>


-- 
<http://www.trimble.com/>
Raymond Wilson
Solution Architect, Civil Construction Software Systems (CCSS)
11 Birmingham Drive | Christchurch, New Zealand
raymond_wilson@trimble.com

<https://worksos.trimble.com/?utm_source=Trimble&utm_medium=emailsign&utm_campaign=Launch>

Re: Detecting checkpoints programmatically

Posted by Zhenya Stanilovsky <ar...@mail.ru>.

hi ! hope this would be helpful [1].
Mentioned events is other one [2] = not useful for you.
Also zabbix can parse the logs, you can obtain all cp info there.
 
[1]  https://issues.apache.org/jira/browse/IGNITE-13845
[2]  https://ignite.apache.org/releases/latest/javadoc/org/apache/ignite/spi/checkpoint/CheckpointSpi.html
 
>I want to make my system detect when a check point has occurred for monitoring and control purposes.
> 
>I found the following events defined in the IA source:
> 
>    /**
>     * All checkpoint events. This array can be directly passed into
>     * { @link   IgniteEvents # localListen(IgnitePredicate, int...) } method to
>     * subscribe to all checkpoint events.
>     *
>     *  @see  CheckpointEvent
>     */
>     public   static   final   int []  EVTS_CHECKPOINT  = {
>        EVT_CHECKPOINT_SAVED,
>        EVT_CHECKPOINT_LOADED,
>         EVT_CHECKPOINT_REMOVED
>    };
> 
>Are these the appropriate events to listen to?
> 
>Thanks,
>Raymond.
>  --
>
>Raymond Wilson
>Solution Architect, Civil Construction Software Systems (CCSS)
>11 Birmingham Drive |  Christchurch, New Zealand
>raymond_wilson@trimble.com
>         
>