This is a sample cache config. We have the same issue with on heap settings
too.
Do you need something else?

        <bean id="tradeOrderCache"
class="org.apache.ignite.configuration.CacheConfiguration">
                <property name="name" value="TradeOrder" />
                <property name="readThrough" value="True" />
                <property name="writeThrough" value="True" />
                <property name="writeBehindEnabled" value="True" />
                
                <property name="writeBehindFlushFrequency" value="#{5 * 1000}" 
/>
                <property name="writeBehindFlushSize" value="0" />
                <property name="cacheMode" value="PARTITIONED" />
                <property name="atomicityMode" value="TRANSACTIONAL" />
                <property name="backups" value="1" />
                <property name="startSize" value="#{1 * 1024 * 1024}" />
                <property name="rebalanceBatchSize" value="#{2 * 1024 * 1024}"/>
        <property name="rebalanceThrottle" value="100"/>

                
                <property name="memoryMode" value="OFFHEAP_TIERED" />
                <property name="offHeapMaxMemory" value="#{10 * 1024L * 1024L * 
1024L}" />

                <property name="cacheStoreFactory">
                        <bean 
class="javax.cache.configuration.FactoryBuilder$SingletonFactory">
                                <constructor-arg>
                                        <ref bean="tradeOrderCacheStore" />
                                </constructor-arg>
                        </bean>
                </property>
                <property name="writeSynchronizationMode" value="FULL_SYNC" />
                <property name="statisticsEnabled" value="true" />
                <property name="queryEntities">
                        <list>
                                <bean id="tradeOrderQueryEntity"
class="org.apache.ignite.cache.QueryEntity">
                                        <property name="keyType"
                                                
value="com.tudor.datagridI.client.data.trading.OrderKey" />
                                        <property name="valueType"
                                                
value="com.tudor.datagridI.client.data.trading.TradeOrder" />

                                        <property name="fields">
                                                <map>
                                                        <entry key="traderId" 
value="java.lang.Integer" />
                                                        <entry key="orderId" 
value="java.lang.Integer" />
                                                        <entry key="insIid" 
value="java.lang.Integer" />
                                                        <entry key="settlement" 
value="java.util.Date" />
                                                        <entry key="clearAgent" 
value="java.lang.String" />
                                                        <entry key="strategy" 
value="java.lang.String" />
                                                        <entry key="pvId" 
value="java.lang.Integer" />
                                                        <entry key="pvDate" 
value="java.util.Date" />
                                                        <entry key="linkId" 
value="java.lang.Integer" />
                                                </map>
                                        </property>
                                        <property name="indexes">
                                                <list>
                                                        <bean 
class="org.apache.ignite.cache.QueryIndex">
                                                                
<constructor-arg>
                                                                        <list>
                                                                                
<value>traderId</value>
                                                                                
<value>orderId</value>
                                                                        </list>
                                                                
</constructor-arg>
                                                                
<constructor-arg>
                                                                        
<value>SORTED</value>
                                                                
</constructor-arg>
                                                                <property 
name="name" value="tradeOrder_key_index" />
                                                        </bean>
                                                </list>
                                        </property>
                                </bean>
                        </list>
                </property>
                <property name="affinity">
                        <bean
                        
class="org.apache.ignite.cache.affinity.rendezvous.RendezvousAffinityFunction">
                                <property name="excludeNeighbors" value="true" 
/>
                        </bean>
                </property>
        </bean>




--
View this message in context: 
http://apache-ignite-users.70518.x6.nabble.com/Killing-a-node-under-load-stalls-the-grid-with-ignite-1-7-tp8130p8334.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Reply via email to