Ignite 2.0 how to swap to hard disk -


when test ignite memory, problems come me. document said can set swap hard disk enable in cacheconfiguration , set swap file path in memorypolicyconfiguration. however, swapenable missing in ignite 2.0 , setswapfile still exists. so, wonder whether swapping disk still available in ignite 2.0. if so, how can manage it.

define memory policy, inject cache. this:

            <!-- defining custom memory policy. -->             <property name="memorypolicies">                 <list>                      <bean class="org.apache.ignite.configuration.memorypolicyconfiguration">                         <property name="name" value="default_region"/>                         <!-- 100 mb memory region disabled eviction -->                         <property name="initialsize" value="#{100 * 1024 * 1024}"/>                         <!-- setting name of swapping file. -->                         <property name="swapfilepath" value="mindmemorypolicyswap"/>                                                </bean> 

try it.


Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -