ignite-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Denis Magda <dma...@apache.org>
Subject Re: getAverageGetTime/getAveragePutTime APIs of CacheMetrics always return 0
Date Tue, 07 Nov 2017 19:27:51 GMT
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 <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 <per.johansson@tangotelecom.com> 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:
> 
>  <bean class="org.apache.ignite.configuration.CacheConfiguration">
>                    <property name="name" value="test-map"/>
>                    <property name="atomicityMode" value="ATOMIC"/>
>                    <property name="cacheMode" value="PARTITIONED" />
>                    <property name="managementEnabled" value="true" />
>                    <property name="statisticsEnabled" value="true" />
>                    <property name="backups" value="0"/>
> 
>                    <property name="queryEntities">
>                        <list>
>                            <bean
> class="org.apache.ignite.cache.QueryEntity">
> 
>                                <property name="keyType"
> value="java.lang.String"/>
> 
> 
>                                <property name="valueType"
> value="com.foo.TestEntry"/>
> 
> 
>                                <property name="fields">
>                                    <map>
>                                        <entry key="user"
> value="java.lang.String"/>
>                                    </map>
>                                </property>
> 
> 
>                                <property name="indexes">
>                                    <list>
>                                        <bean
> class="org.apache.ignite.cache.QueryIndex">
>                                            <constructor-arg value="user"/>
>                                        </bean>
>                                    </list>
>                                </property>
>                            </bean>
>                        </list>
>                    </property>
>                </bean>
> 
> Regards,
> Per
> 
> 
> 
> --
> Sent from: http://apache-ignite-users.70518.x6.nabble.com/


Mime
View raw message