Hello,

I am new to Apache Ignite and exploring many cool features. My application
requires Ignite to run as embedded and use off-heap memory to cache data.
That means each application node is Server with off-heap storage capability. 

Can you please post example XML configuration for Near cache? 
I used below and caching seems to work, but not sure if it has correctly
configured it as Near cache. Tried MBEAN and visor console, but no hints.
Can you please comment on below configuration and way to ensure it is
configured correctly?

<property name="cacheConfiguration">
        <list>
                <bean 
class="org.apache.ignite.configuration.CacheConfiguration">
                        <property name="name" value="RECORDS"/>
                        <property name="cacheMode" value="PARTITIONED"/>
                        <property name="memoryMode" value="OFFHEAP_TIERED"/>
                        <property name="swapEnabled" value="false"/>
                        <property name="offHeapMaxMemory" value="#{5 * 1024L * 
1024L * 1024L}"/>
                        <property name="nearConfiguration"> 
                                <bean 
class="org.apache.ignite.configuration.NearCacheConfiguration"/> 
                        </property> 
                </bean>
        </list>
</property>

How can I configure off-heap 5GB and near cache for 10000 entries?  I am
unable to configure eviction policy for near cache in XML.

Thanks a lot.
-Sam



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

Reply via email to