I started a replicated cache on a cluster with 2 server nodes and 1 client
node and executed 100,000 puts with key starting from 1 to 100,000. Once put
is done i fetched all the entries one by one through cache key. Cache
metrics for cluster looks abit off to me. I think i am missing something
here. Below is cache configuration and cache metrics for cluster.

<bean class="org.apache.ignite.configuration.CacheConfiguration">
        <property name="name" value="TEST_PARTITIONED" />
        <property name="cacheMode" value="PARTITIONED" />
        <property name="managementEnabled" value="true" />
        <property name="statisticsEnabled" value="true" />
        <property name="evictionPolicy">
                <bean 
class="org.apache.ignite.cache.eviction.fifo.FifoEvictionPolicy">
                        
                        <property name="maxSize" value="20000" />
                </bean>
        </property>
        <property name="startSize" value="21000" />
</bean>


CLUSTER Cache Metrics = CacheMetricsSnapshot [reads=99104, puts=100000,
hits=39104, misses=39104, txCommits=0, txRollbacks=0, evicts=60000,
removes=0, putAvgTimeNanos=0.0, getAvgTimeNanos=0.0, rmvAvgTimeNanos=0.0,
commitAvgTimeNanos=0.0, rollbackAvgTimeNanos=0.0,
cacheName=TEST_PARTITIONED, overflowSize=0, offHeapGets=0, offHeapPuts=0,
offHeapRemoves=0, offHeapEvicts=0, offHeapHits=0, offHeapMisses=0,
offHeapEntriesCnt=0, offHeapPrimaryEntriesCnt=0, offHeapBackupEntriesCnt=0,
offHeapAllocatedSize=0, offHeapMaxSize=-1, swapGets=0, swapPuts=0,
swapRemoves=0, swapEntriesCnt=0, swapHits=0, swapMisses=0, swapSize=0,
size=0, keySize=0, isEmpty=true, dhtEvictQueueCurrSize=0, txThreadMapSize=0,
txXidMapSize=0, txCommitQueueSize=0, txPrepareQueueSize=0,
txStartVerCountsSize=0, txCommittedVersionsSize=4,
txRolledbackVersionsSize=4, txDhtThreadMapSize=-1, txDhtXidMapSize=-1,
txDhtCommitQueueSize=0, txDhtPrepareQueueSize=0, txDhtStartVerCountsSize=0,
txDhtCommittedVersionsSize=-1, txDhtRolledbackVersionsSize=-1,
isWriteBehindEnabled=false, writeBehindFlushSize=-1,
writeBehindFlushThreadCnt=-1, writeBehindFlushFreq=-1,
writeBehindStoreBatchSize=-1, writeBehindTotalCriticalOverflowCnt=-1,
writeBehindCriticalOverflowCnt=-1, writeBehindErrorRetryCnt=-1,
writeBehindBufSize=-1, keyType=java.lang.Object, valType=java.lang.Object,
isStoreByVal=true, isStatisticsEnabled=true, isManagementEnabled=true,
isReadThrough=false, isWriteThrough=false]

What bothers me in above result is
1) Why reads are 99104 whereas i performed 100,000 gets.
2) Hits=Misses=39104. Why total of hits and missed is not equal to reads?
3) putAvgTimeNanos=getAvgTimeNanos=rmvAvgTimeNanos=0.0. Why all put times
are 0?
4) size=keySize=0 in metrics but cache.size() returned 40,000 (which is
expected with eviction maxSize 20,000 for partitioned cache on 2 server node
cluster)
5) I got cache instance through ignite.cache(<cache name here>). After
completion of above process i printed cache.metrics() which was all empty
although cache.metrics(<cluster Grp>) prints above metrics.

Regards,
Vinay Sharma

Regards,
Vinay Sharma



--
View this message in context: 
http://apache-ignite-users.70518.x6.nabble.com/Is-there-a-way-to-get-cache-metrics-for-all-the-nodes-in-cluster-combined-tp2674p2677.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Reply via email to