1
<?xml version="1.0" encoding="UTF-8"?>
20
<beans xmlns="http://www.springframework.org/schema/beans"
21
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:util="http://www.springframework.org/schema/util"
23
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
24
http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util.xsd">
27
Base Spring file for grid configuration.
30
<bean abstract="true" id="grid.cfg" class="org.apache.ignite.configuration.IgniteConfiguration">
31
<property name="igniteInstanceName" value="dsi"/>
33
<property name="localHost" value="127.0.0.1"/>
35
<property name="discoverySpi">
36
<bean class="org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi">
37
<property name="ipFinder">
39
class="org.apache.ignite.spi.discovery.tcp.ipfinder.vm.TcpDiscoveryVmIpFinder">
40
<property name="addresses">
42
<value>127.0.0.1:47500</value>
43
<value>127.0.0.1:47501</value>
49
<property name="ackTimeout" value="4000"/>
50
<property name="socketTimeout" value="4000"/>
54
<property name="metricsUpdateFrequency" value="6000"/>
56
<property name="lifecycleBeans" ref="lifecycleBeans"/>
58
<property name="peerClassLoadingEnabled" value="false"/>
60
<property name="connectorConfiguration"><null/></property>
62
<property name="deploymentMode" value="CONTINUOUS"/>
64
<property name="publicThreadPoolSize" value="#{T(java.lang.Runtime).getRuntime().availableProcessors() * 4}"/>
66
<property name="systemThreadPoolSize" value="#{T(java.lang.Runtime).getRuntime().availableProcessors() * 8}"/>
68
<property name="failoverSpi">
69
<bean class="org.apache.ignite.spi.failover.always.AlwaysFailoverSpi">
70
<property name="maximumFailoverAttempts" value="1"/>