Enabling memory and persistence metrics

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

Enabling memory and persistence metrics

dmagda
Sergey,

How do I enable MemoryMetrics and PersistenceMetrics metrics aggregation if a have only the default region set and don’t wanna use the JMX beans available?

Struggling to find any API method to do that. Hope we didn’t forget to support such an obvious thing.


Denis
Reply | Threaded
Open this post in threaded view
|

Re: Enabling memory and persistence metrics

Pavel Tupitsyn
Hi Denis,

See PersistentStoreConfiguration.metricsEnabled, MemoryPolicyConfiguration.
metricsEnabled

On Sat, Jul 8, 2017 at 2:55 AM, Denis Magda <[hidden email]> wrote:

> Sergey,
>
> How do I enable MemoryMetrics and PersistenceMetrics metrics aggregation
> if a have only the default region set and don’t wanna use the JMX beans
> available?
>
> Struggling to find any API method to do that. Hope we didn’t forget to
> support such an obvious thing.
>
> —
> Denis
Reply | Threaded
Open this post in threaded view
|

Re: Enabling memory and persistence metrics

dmagda
Hi Pavel, thanks.

However, how do I enable the metrics for the default memory region (policy)? I’m talking about the use case when there are no custom memory regions/policies defined.

Is it supposed that the user need to recreate the default policy configuration from sratch just in order to enable the metrics? Can we add “MemoryConfiguration.setMetricsEnabled” method that will enable metrics for all the regions we have?


Denis

> On Jul 10, 2017, at 1:44 AM, Pavel Tupitsyn <[hidden email]> wrote:
>
> Hi Denis,
>
> See PersistentStoreConfiguration.metricsEnabled, MemoryPolicyConfiguration.
> metricsEnabled
>
> On Sat, Jul 8, 2017 at 2:55 AM, Denis Magda <[hidden email]> wrote:
>
>> Sergey,
>>
>> How do I enable MemoryMetrics and PersistenceMetrics metrics aggregation
>> if a have only the default region set and don’t wanna use the JMX beans
>> available?
>>
>> Struggling to find any API method to do that. Hope we didn’t forget to
>> support such an obvious thing.
>>
>> —
>> Denis

Reply | Threaded
Open this post in threaded view
|

Re: Enabling memory and persistence metrics

Sergey Chugunov
Denis,

Indeed for default MemoryPolicy user has to create a MemoryPolicy
explicitly.

But I strongly dislike the idea of adding new global setting to
MemoryConfiguration section. This section is already overloaded with a lot
of non-obvious stuff; and adding one more will make it even worse.

The better approach is to have a general message-based mechanism which
would allow user to send a command to the grid to turn on and off
collecting any metrics.
Although it requires more discussion, design and implementation efforts I
believe it is the only reasonable option in long-term.

Thanks,
Sergey.

On Tue, Jul 11, 2017 at 3:24 AM, Denis Magda <[hidden email]> wrote:

> Hi Pavel, thanks.
>
> However, how do I enable the metrics for the default memory region
> (policy)? I’m talking about the use case when there are no custom memory
> regions/policies defined.
>
> Is it supposed that the user need to recreate the default policy
> configuration from sratch just in order to enable the metrics? Can we add
> “MemoryConfiguration.setMetricsEnabled” method that will enable metrics
> for all the regions we have?
>
> —
> Denis
>
> > On Jul 10, 2017, at 1:44 AM, Pavel Tupitsyn <[hidden email]>
> wrote:
> >
> > Hi Denis,
> >
> > See PersistentStoreConfiguration.metricsEnabled,
> MemoryPolicyConfiguration.
> > metricsEnabled
> >
> > On Sat, Jul 8, 2017 at 2:55 AM, Denis Magda <[hidden email]> wrote:
> >
> >> Sergey,
> >>
> >> How do I enable MemoryMetrics and PersistenceMetrics metrics aggregation
> >> if a have only the default region set and don’t wanna use the JMX beans
> >> available?
> >>
> >> Struggling to find any API method to do that. Hope we didn’t forget to
> >> support such an obvious thing.
> >>
> >> —
> >> Denis
>
>