Created
August 14, 2020 22:45
-
-
Save kommradHomer/3b4317b50262e6bb0d119f8a69928918 to your computer and use it in GitHub Desktop.
ignite server onconf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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"> | |
<!-- | |
Alter configuration below as needed. | |
--> | |
<bean id="grid.cfg" class="org.apache.ignite.configuration.IgniteConfiguration"> | |
<property name="clientMode" value="false"/> | |
<!-- Enabling Apache Ignite Persistent Store. --> | |
<property name="dataStorageConfiguration"> | |
<bean class="org.apache.ignite.configuration.DataStorageConfiguration"> | |
<property name="defaultDataRegionConfiguration"> | |
<bean class="org.apache.ignite.configuration.DataRegionConfiguration"> | |
<property name="persistenceEnabled" value="true"/> | |
</bean> | |
</property> | |
</bean> | |
</property> | |
<property name="consistentId" value="myIgniteNode01"/> | |
<property name="cacheConfiguration"> | |
<list> | |
<bean class="org.apache.ignite.configuration.CacheConfiguration"> | |
<!-- Set a cache name. --> | |
<property name="name" value="myReplicatedCache"/> | |
<!-- Set cache mode. --> | |
<property name="cacheMode" value="REPLICATED"/> | |
<!-- Other cache configurations. --> | |
</bean> | |
</list> | |
</property> | |
<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> | |
<!-- | |
Explicitly specifying address of a local node to let it start and | |
operate normally even if there is no more nodes in the cluster. | |
You can also optionally specify an individual port or port range. | |
--> | |
<value>IP OF NODE01</value> | |
<value>IP OF NODE02</value> | |
</list> | |
</property> | |
</bean> | |
</property> | |
</bean> | |
</property> | |
</bean> | |
</beans> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment