<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xsi:schemaLocation="http://www.springframework.org/schema/beans
        http://www.springframework.org/schema/beans/spring-beans.xsd">
		<bean class="org.apache.ignite.configuration.IgniteConfiguration">
<property name="userAttributes">
<map>
<entry key="rack" value="rack-2" />
</map>
</property>
<property name="systemWorkerBlockedTimeout" value="#{60 * 1000}"/>
      <property name="workDirectory" value="work"/>
		<property name="consistentId" value="CONSISTENTID"/>
		<property name="clientMode" value="false"/>
<property name="failureHandler">
        <bean class="org.apache.ignite.failure.StopNodeFailureHandler">
        <property name="ignoredFailureTypes">
                         <list>
            </list>
  </property>
</bean>
    </property>
        <!-- Enabling Apache Ignite Persistent Store. -->
        <property name="dataStorageConfiguration">
            <bean class="org.apache.ignite.configuration.DataStorageConfiguration">
			<!-- Set the page size to 8 KB -->
			<property name="pageSize" value="#{8 * 1024}"/>
			<property name="writeThrottlingEnabled" value="true"/>
			
			<!--
                    Sets a path to the root directory where data and indexes are
                    to be persisted. It's assumed the directory is on a separated SSD.
                -->
				
				<property name="storagePath" value="ignite/opt/persistence"/>
                <property name="walPath" value="ignite/opt/wal"/>
                <property name="walArchivePath" value="ignite/opt/wal-archive"/>
				 <!-- set the size of wal segments to 128MB -->
				<property name="walSegmentSize" value="#{1024 * 1024 * 1024}"/>
				
                <property name="defaultDataRegionConfiguration">
                    <bean class="org.apache.ignite.configuration.DataRegionConfiguration">
                        <property name="persistenceEnabled" value="true"/>
						<property name="name" value="myDataRegion"/>
						<property name="initialSize" value="#{500L * 1024 * 1024}"/>
                        <property name="maxSize" value="#{2L * 1024 * 1024 * 1024}"/>
						 <property name="checkpointPageBufferSize" value="#{1024L * 1024 * 1024}"/>
                        <property name="pageReplacementMode" value="SEGMENTED_LRU"/>
                    </bean>
                </property>
            </bean>
        </property>
		
		<!-- Explicitly configure TCP discovery SPI to provide a list of initial nodes. -->

    <property name="communicationSpi">
        <bean class="org.apache.ignite.spi.communication.tcp.TcpCommunicationSpi">
            <property name="localPort" value="4321"/>
        </bean>
    </property>

        <!-- Explicitly configure TCP discovery SPI to provide a list of initial nodes. -->
        <property name="discoverySpi">
            <bean class="org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi">
		<property name="localPort" value="47500"/>
		<property name="localPortRange" value="100"/>
		<property name="localAddress" value="IPADDRESS"/>
                <property name="ipFinder">
                    <!-- Uncomment static IP finder to enable static-based discovery of initial nodes. -->
                   <bean class="org.apache.ignite.spi.discovery.tcp.ipfinder.vm.TcpDiscoveryVmIpFinder">
                    <!-- <bean class="org.apache.ignite.spi.discovery.tcp.ipfinder.multicast.TcpDiscoveryMulticastIpFinder"> -->
                        <property name="addresses">
                            <list>
                                <!-- In distributed environment, replace with actual host IP address. -->
                                <value></value>
								 <value>NODE1</value>
								 <value>NODE2</value>
								 <value>NODE3</value>
                            </list>
                        </property>
                    </bean>
                </property>
            </bean>
        </property>
    </bean>
</beans>
