Re: ignite cache metrics...

2020-07-30 Thread akurbanov
Hello Kay,

Yes, get for a key means hit or miss basically. So you should enable cache
metrics:
https://apacheignite.readme.io/docs/cache-metrics

And use something like hits/(hits+misses). Would that reflect the metric
that you want to look at?

Best regards,
Anton



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


ignite cache metrics...

2020-07-29 Thread kay
Hello, I'm curious about cache hit ratio.
How do we calculate the Hit rate of Cache?
Getting data means getting hit rates?


Thank you
 





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


RE: Unable to get the ignite cache metrics

2018-09-28 Thread V, Krupa (Nokia - IN/Bangalore)
I have used the parameter: 
ignite_org_apache_ignite_internal_processors_cache_cacheclustermetricsmxbeanimpl_averageputtime
 
I am still getting zero only.

-Original Message-
From: ezhuravlev  
Sent: Thursday, September 20, 2018 8:48 PM
To: user@ignite.apache.org
Subject: Re: Unable to get the ignite cache metrics

Hi,

Looks like you try to access local cache metrics on client node, which will be 
empty, because clients doesn't store cache. Try to use 
CacheClusterMetricsMXBeanImpl instead.

Evgenii



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


Re: Ignite Cache metrics on K8s

2018-09-27 Thread Maxim.Pudov
Try to call CacheMetricsMXBean.enableMetrics(). 
See also
https://apacheignite.readme.io/docs/cache-metrics#section-using-jmx-bean



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


Re: Unable to get the ignite cache metrics

2018-09-20 Thread ezhuravlev
Hi,

Looks like you try to access local cache metrics on client node, which will
be empty, because clients doesn't store cache. Try to use
CacheClusterMetricsMXBeanImpl instead.

Evgenii



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


Ignite Cache metrics on K8s

2018-09-19 Thread Premachandran, Mahesh (Nokia - IN/Bangalore)
Hi,

I am trying to fetch some cache metrics from Ignite 2.5 running on k8s. Enabled 
the cache level metrics by setting the below property in ignite config xml for 
specific cache.


But both 
"ignite_org_apache_ignite_internal_processors_cache_cacheclustermetricsmxbeanimpl_cacheputs"
 and 
"ignite_org_apache_ignite_internal_processors_cache_cachelocalmetricsmxbeanimpl_averageputtime"
 value is coming as 0 while am able to get values for 
"ignite_org_apache_ignite_internal_processors_cache_cacheclustermetricsmxbeanimpl_keysize"

Are there any other property that I need to set to get these metrics? I am 
injecting data using IgniteDataStreamer.

Regards,
Mahesh




Unable to get the ignite cache metrics

2018-09-19 Thread kripa
Hi 
I brought ignite server on k8s cluster.
Set the below property for a cache i wanted to check the metrics
 

Then i started the client and tried to push the data into ignite cache.
I am able to see the data in the cache.
But the values for the following metrics i am getting as 0. Can some one let
me know why is this.
ignite_org_apache_ignite_internal_processors_cache_cachelocalmetricsmxbeanimpl_cacheputs
= 0
ignite_org_apache_ignite_internal_processors_cache_cachelocalmetricsmxbeanimpl_averageputtime
= 0




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


Re: Ignite Cache Metrics

2017-06-15 Thread Megha Mittal
Hi,

Thanks for raising the jira. Looking forward to its resolution. 



--
View this message in context: 
http://apache-ignite-users.70518.x6.nabble.com/Ignite-Cache-Metrics-tp13624p13824.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.


Re: Ignite Cache Metrics

2017-06-15 Thread Dmitry Pavlov
Hi Megha,

Please note there was improvement added about this metric
https://issues.apache.org/jira/browse/IGNITE-5490

Best Regards,
Dmitry Pavlov

чт, 15 июн. 2017 г. в 12:34, Megha Mittal <meghamittal1...@gmail.com>:

> Hi,
>
> Thanks for your reply. It's quite possible that rebalancing might be taking
> place which led to this difference. As after some time I got matching
> numbers.
>
> But I am still not clear why is metrics().getOffHeapAllocatedSize() = 0 .
>
>
>
> --
> View this message in context:
> http://apache-ignite-users.70518.x6.nabble.com/Ignite-Cache-Metrics-tp13624p13809.html
> Sent from the Apache Ignite Users mailing list archive at Nabble.com.
>


Re: Ignite Cache Metrics

2017-06-15 Thread Megha Mittal
Hi,

Thanks for your reply. It's quite possible that rebalancing might be taking
place which led to this difference. As after some time I got matching
numbers.

But I am still not clear why is metrics().getOffHeapAllocatedSize() = 0 .



--
View this message in context: 
http://apache-ignite-users.70518.x6.nabble.com/Ignite-Cache-Metrics-tp13624p13809.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.


Re: Ignite Cache Metrics

2017-06-15 Thread ezhuravlev
Hi,

Are you sure that your cache was not accessed in the same time by another
nodes/threads? Are you sure that rebalance was finished?

Could you share some simple reproducer with us? 

I've tried to reproduce same behavior, but  OFFHEAP, PRIMARY & BACKUP was
equal to each other. Also, right after streaming of data
metrics().getOffHeapPrimaryEntriesCount() was a little bit smaller than
these sizes, but in a short time it became equal to them too. 

Here are other memory metrics:
https://apacheignite.readme.io/docs/memory-and-cache-metrics

Evgenii



--
View this message in context: 
http://apache-ignite-users.70518.x6.nabble.com/Ignite-Cache-Metrics-tp13624p13806.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.


Ignite Cache Metrics

2017-06-12 Thread Megha Mittal
Hi, I am trying to access Ignite-2.0.0 cache metrics. I have loaded one cache
into my cluster of 2 nodes with 1 backup (onHeapEnabled=false)

At an instant of time I am getting below ignite cache size using :

itemCache.size(CachePeekMode.OFFHEAP) = 2645679
itemCache.size(CachePeekMode.PRIMARY) = 2645679
itemCache.size(CachePeekMode.BACKUP) = 2635802
itemCache.metrics().getOffHeapPrimaryEntriesCount() = 2638451

Why is there a difference in above numbers. In my understanding primary and
backup count should be same and same as that of all the entries in cache .
Also count fetched using cache.size and cache.metrics should give same
numbers. 

Also can someone tell me how can I get off heap memory used . 
When I do itemCache.metrics().getOffHeapAllocatedSize() , I get '0' always.
Is there some other metric available to fetch off heap memory metrics. 



--
View this message in context: 
http://apache-ignite-users.70518.x6.nabble.com/Ignite-Cache-Metrics-tp13624.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.