Add lastCheckpointStarted metric

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Add lastCheckpointStarted metric

Ilya Kazakov
Hello, the community!

Sometimes one needs to understand how long ago did the last checkpoint
start or end, how long was it, etc. There is lastCheckpointDuration already
- let’s add lastCheckpointStarted timestamp. From these two metrics, the
user can also figure out started + duration = ended and now - ended = time
without cp.

I have already created the issue:
https://issues.apache.org/jira/browse/IGNITE-13591

I suppose add and implement in DataStorageMetrics interface:

public long getLastCheckpointStarted();

----------------------
Ilya Kazakov
Reply | Threaded
Open this post in threaded view
|

Re: Add lastCheckpointStarted metric

agura
Hi, Ilya.

I've left a comment to the JIRA issue. Please, look at it.

On Tue, Oct 20, 2020 at 8:39 AM Ilya Kazakov <[hidden email]> wrote:

>
> Hello, the community!
>
> Sometimes one needs to understand how long ago did the last checkpoint
> start or end, how long was it, etc. There is lastCheckpointDuration already
> - let’s add lastCheckpointStarted timestamp. From these two metrics, the
> user can also figure out started + duration = ended and now - ended = time
> without cp.
>
> I have already created the issue:
> https://issues.apache.org/jira/browse/IGNITE-13591
>
> I suppose add and implement in DataStorageMetrics interface:
>
> public long getLastCheckpointStarted();
>
> ----------------------
> Ilya Kazakov
Reply | Threaded
Open this post in threaded view
|

Re: Add lastCheckpointStarted metric

Ilya Kazakov
Hi, Andrey!

Thanks, for your help! I will apply it right now.

------------------------------
Ilya Kazakov

пт, 30 окт. 2020 г. в 03:47, Andrey Gura <[hidden email]>:

> Hi, Ilya.
>
> I've left a comment to the JIRA issue. Please, look at it.
>
> On Tue, Oct 20, 2020 at 8:39 AM Ilya Kazakov <[hidden email]>
> wrote:
> >
> > Hello, the community!
> >
> > Sometimes one needs to understand how long ago did the last checkpoint
> > start or end, how long was it, etc. There is lastCheckpointDuration
> already
> > - let’s add lastCheckpointStarted timestamp. From these two metrics, the
> > user can also figure out started + duration = ended and now - ended =
> time
> > without cp.
> >
> > I have already created the issue:
> > https://issues.apache.org/jira/browse/IGNITE-13591
> >
> > I suppose add and implement in DataStorageMetrics interface:
> >
> > public long getLastCheckpointStarted();
> >
> > ----------------------
> > Ilya Kazakov
>