Re: getAverageGetTime/getAveragePutTime APIs of CacheMetrics always return 0

2017-11-20 Thread Denis Magda
Eventually I could reproduce your issue:
https://issues.apache.org/jira/browse/IGNITE-6966 


It will be fixed as a part of this endeavor:
https://cwiki.apache.org/confluence/display/IGNITE/IEP-6%3A+Metrics+improvements
 


Thanks for your patience and support in reproducing the bug.

β€”
Denis


> On Nov 20, 2017, at 4:23 AM, headstar  wrote:
> 
> Thanks for the example! Works fine when running IgniteMetricsExample#main
> with the provided conf.
> 
> One difference to "my" configuration was that I was running the node
> accessing the cache in client mode. 
> 
> If I start a node with the configuration provided in your example and then
> run IgniteMetricsExample#main in client mode the statistics are 0. 
> 
> 
> 
> 
> 
> 
> 
> --
> Sent from: http://apache-ignite-users.70518.x6.nabble.com/



Re: getAverageGetTime/getAveragePutTime APIs of CacheMetrics always return 0

2017-11-20 Thread headstar
Thanks for the example! Works fine when running IgniteMetricsExample#main
with the provided conf.

One difference to "my" configuration was that I was running the node
accessing the cache in client mode. 

If I start a node with the configuration provided in your example and then
run IgniteMetricsExample#main in client mode the statistics are 0. 







--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/


Re: getAverageGetTime/getAveragePutTime APIs of CacheMetrics always return 0

2017-11-11 Thread headstar
Hi,

"Set CacheConfiguration.setStatisticsEnabled(boolean) to true for every
cache you want to collect the metrics for."

I've done that (see post from Nov 7).

"Pass a particular EventStorageSpi interface implementation into
IgniteConfiguration.setEventStorageSpi(...) method. You can use
MemoryEventStorageSpi provided out-of-the-box ."

Was hoping to get the metrics exposed via JMX to work.

Regards,
Per



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/


Re: getAverageGetTime/getAveragePutTime APIs of CacheMetrics always return 0

2017-11-09 Thread Denis Magda
Hi,

In addition to that you need to enable cache metrics calculation:
To enable cache metrics gathering:
Set CacheConfiguration.setStatisticsEnabled(boolean) to true for every cache 
you want to collect the metrics for.
Pass a particular EventStorageSpi interface implementation into 
IgniteConfiguration.setEventStorageSpi(...) method. You can use 
MemoryEventStorageSpi provided out-of-the-box .

Take from here: https://apacheignite.readme.io/v2.3/docs/cache-metrics

In the upcoming releases we plan to simplify cache metrics activation 
experience:
https://issues.apache.org/jira/browse/IGNITE-5796 


β€”
Denis

> On Nov 8, 2017, at 12:49 AM, headstar  wrote:
> 
> Hi,
> 
> Changed to 2.3.0 and added
> 
>
> class="org.apache.ignite.configuration.DataStorageConfiguration">
>
> class="org.apache.ignite.configuration.DataRegionConfiguration">
>
>
>
>
>
> 
> AverageGetTime/AveragePutTime still 0.
> 
> Per
> 
> 
> 
> --
> Sent from: http://apache-ignite-users.70518.x6.nabble.com/



Re: getAverageGetTime/getAveragePutTime APIs of CacheMetrics always return 0

2017-11-08 Thread headstar
Hi,

Changed to 2.3.0 and added











AverageGetTime/AveragePutTime still 0.

Per



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/


Re: getAverageGetTime/getAveragePutTime APIs of CacheMetrics always return 0

2017-11-07 Thread Denis Magda
Hi,

You need to enable metrics per data region 
(DataRegionConfiguration.setMetricsEnabled(true)). This is how it’s done in 
Ignite 2.3:
https://apacheignite.readme.io/docs 

If you prefer to stay on 2.2 then change the documentation version to see how 
to achieve this with the previous version.

β€”
Denis

> On Nov 7, 2017, at 1:07 AM, kaleid  wrote:
> 
> Hi,
> 
> Using 2.2.0 and looking at the JMX stats, AverageGetTime and AveragePutTime
> are always 0 (other stats, like CacheGets, are updated as expected)
> 
> Using cache configuration as:
> 
>  
>
>
>
>
>
>
> 
>
>
> class="org.apache.ignite.cache.QueryEntity">
> 
> value="java.lang.String"/>
> 
> 
> value="com.foo.TestEntry"/>
> 
> 
>
>
> value="java.lang.String"/>
>
>
> 
> 
>
>
> class="org.apache.ignite.cache.QueryIndex">
>
>
>
>
>
>
>
>
> 
> Regards,
> Per
> 
> 
> 
> --
> Sent from: http://apache-ignite-users.70518.x6.nabble.com/



Re: getAverageGetTime/getAveragePutTime APIs of CacheMetrics always return 0

2017-11-07 Thread kaleid
Hi,

Using 2.2.0 and looking at the JMX stats, AverageGetTime and AveragePutTime
are always 0 (other stats, like CacheGets, are updated as expected)

Using cache configuration as:

  




































Regards,
Per



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/


Re: getAverageGetTime/getAveragePutTime APIs of CacheMetrics always return 0

2017-11-06 Thread Pavel Pereslegin
Hello, BIren.

I think the impact on performance is minimal, but I don't have exact figures.

2017-11-05 22:05 GMT+03:00 Biren :
> Thank you Pavel!!. I have not enabled statistics. Do you know what would be
> performance impact on enabling it?
>
> -Biren
>
>
>
> --
> Sent from: http://apache-ignite-users.70518.x6.nabble.com/


Re: getAverageGetTime/getAveragePutTime APIs of CacheMetrics always return 0

2017-11-05 Thread Biren
Thank you Pavel!!. I have not enabled statistics. Do you know what would be
performance impact on enabling it?

-Biren



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/


Re: getAverageGetTime/getAveragePutTime APIs of CacheMetrics always return 0

2017-11-05 Thread Pavel Pereslegin
Hello, Biren.

Did you enable statistics in the cache configuration?


2017-11-04 2:43 GMT+03:00 Biren :
> We are investigating performance issue on our cluster of 2 nodes. We are
> trying to understand time it takes to get or put a cache entry from/to the
> cache. We are looking at out of box metrics for a cache . Both
> getAverageGetTime and getAveragePutTime apis of CacheMetrics are always
> giving value 0.
>
> Is this a bug or are we looking at wrong metric?
>
>
> -Biren
>
>
>
> --
> Sent from: http://apache-ignite-users.70518.x6.nabble.com/


getAverageGetTime/getAveragePutTime APIs of CacheMetrics always return 0

2017-11-03 Thread Biren
We are investigating performance issue on our cluster of 2 nodes. We are
trying to understand time it takes to get or put a cache entry from/to the
cache. We are looking at out of box metrics for a cache . Both
getAverageGetTime and getAveragePutTime apis of CacheMetrics are always
giving value 0. 

Is this a bug or are we looking at wrong metric?


-Biren



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/