I have a few doubts on off heap cache configuration
1. Is it possible to set both off-heap and cache store with write behind
mode for a cache?
The configuration looks like:
<bean class="org.apache.ignite.configuration.CacheConfiguration">
<property name="name" value="TestData" />
<property name="memoryMode" value="ONHEAP_TIERED" />
<property name="offHeapMaxMemory" value="#{5 * 1024L * 1024L * 1024L}" />
<property name="writeBehindEnabled" value="true" />
<property name="writeBehindFlushSize" value="200" />
<property name="writeBehindFlushFrequency" value="1000000"/>
<property name="evictionPolicy">
<bean
class="org.apache.ignite.cache.eviction.fifo.FifoEvictionPolicy">
<property name="maxSize" value="100000"/>
</bean>
</property>
<property name="cacheStoreFactory">
<bean class="javax.cache.configuration.FactoryBuilder$SingletonFactory">
<constructor-arg> <bean
class="com.wipro.base.cache.MySqlPersistenceStore"></bean>
</constructor-arg>
</bean>
</property>
2. from which place (onheap or offheap or both) the cached objects are
written to cache store (MySQL above) if write behind is enabled?
3. What will happen to a new item to be placed in cache when the size (both
onheap and offheap) has already exceeded the limit?
--
View this message in context:
http://apache-ignite-users.70518.x6.nabble.com/Setting-both-offHeapMaxMemory-and-cacheStoreFactory-tp2527.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.