Hi Vladislav,
i was trying swap space and see it is not working in unix but my test
program worked on windows.
i can swap folders but no files. Did you see any issue in the below
configuration ?
CacheConfiguration<String, Person> pConfig = new
CacheConfiguration<String, Person>();
pConfig.setName("Person_Cache");
pConfig.setIndexedTypes(String.class, Person.class);
pConfig.setBackups(1);
pConfig.setCacheMode(CacheMode.PARTITIONED);
pConfig.setCopyOnRead(false);
pConfig.setSwapEnabled(true);
pConfig.setMemoryMode(CacheMemoryMode.OFFHEAP_TIERED);
pConfig.setSqlOnheapRowCacheSize(100_000);
pConfig.setOffHeapMaxMemory(10 * 1024 * 1024 * 1024);
pConfig.setStartSize(2000000);
pConfig.setStatisticsEnabled(true);
and ignite.xml -
<bean id = "grid1"
class="org.apache.ignite.configuration.IgniteConfiguration">
<!-- <property name="clientMode" value="true" /> -->
<property name="gridName" value="my-grid" />
<property name="peerClassLoadingEnabled" value="false" />
<property name="metricsLogFrequency" value="0" />
<property name="swapSpaceSpi">
<bean class="org.apache.ignite.spi.swapspace.file.FileSwapSpaceSpi">
<property name="baseDirectory" value="/opt/ignite-manager/api/swap"/>
</bean>
</property>
<!-- Explicitly configure TCP discovery SPI to provide list of initial
nodes. -->
<property name="discoverySpi">
<bean class="org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi">
<property name="ipFinder">
<bean
class="org.apache.ignite.spi.discovery.tcp.ipfinder.vm.TcpDiscoveryVmIpFinder">
<property name="addresses">
<list>
<value>XX.XX.XX.1:47500..47509</value>
<value>XX.XX.XX.2:47500..47509</value>
<value>XX.XX.XX.3:47500..47509</value>
</list>
</property>
</bean>
</property>
</bean>
</property>
</bean>
</beans>
Thanks