Created
November 14, 2017 12:56
-
-
Save Romeh/549ad8f758bfd74db08189e3ca2e05ec to your computer and use it in GitHub Desktop.
IgniteCluster.xml
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"?> | |
<!-- | |
_________ _____ __________________ _____ | |
__ ____/___________(_)______ /__ ____/______ ____(_)_______ | |
_ / __ __ ___/__ / _ __ / _ / __ _ __ `/__ / __ __ \ | |
/ /_/ / _ / _ / / /_/ / / /_/ / / /_/ / _ / _ / / / | |
\____/ /_/ /_/ \_,__/ \____/ \__,_/ /_/ /_/ /_/ | |
Copyright (C) GridGain Systems. All Rights Reserved. | |
Licensed under the Apache License, Version 2.0 (the "License"); | |
you may not use this file except in compliance with the License. | |
You may obtain a copy of the License at | |
http://www.apache.org/licenses/LICENSE-2.0 | |
Unless required by applicable law or agreed to in writing, software | |
distributed under the License is distributed on an "AS IS" BASIS, | |
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
See the License for the specific language governing permissions and | |
limitations under the License. | |
--> | |
<!-- | |
Ignite Spring configuration file. | |
--> | |
<beans xmlns="http://www.springframework.org/schema/beans" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xmlns:util="http://www.springframework.org/schema/util" | |
xsi:schemaLocation=" | |
http://www.springframework.org/schema/beans | |
http://www.springframework.org/schema/beans/spring-beans-2.5.xsd | |
http://www.springframework.org/schema/util | |
http://www.springframework.org/schema/util/spring-util-2.0.xsd"> | |
<bean class="org.apache.ignite.configuration.IgniteConfiguration"> | |
<!-- Set to true to enable grid-aware class loading for examples, default is false. --> | |
<property name="peerClassLoadingEnabled" value="false"/> | |
<property name="publicThreadPoolSize" value="16"/> | |
<property name="systemThreadPoolSize" value="8"/> | |
<property name="asyncCallbackPoolSize" value="16"/> | |
<property name="metricsLogFrequency" value="0"/> | |
<property name="clientMode" value="false"/> | |
<!-- Enable events for examples. --> | |
<property name="includeEventTypes"> | |
<util:list> | |
<util:constant static-field="org.apache.ignite.events.EventType.EVT_NODE_LEFT"/> | |
<util:constant static-field="org.apache.ignite.events.EventType.EVT_NODE_FAILED"/> | |
</util:list> | |
</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"> | |
<!-- Uncomment multicast IP finder to enable multicast-based discovery of initial nodes. --> | |
<!--<bean class="org.apache.ignite.spi.discovery.tcp.ipfinder.multicast.TcpDiscoveryMulticastIpFinder">--> | |
<bean class="org.apache.ignite.spi.discovery.tcp.ipfinder.vm.TcpDiscoveryVmIpFinder"> | |
<property name="addresses"> | |
<list> | |
<!-- In distributed environment, replace with actual host IP address. --> | |
<value>127.0.0.1:47500..47509</value> | |
</list> | |
</property> | |
</bean> | |
</property> | |
</bean> | |
</property> | |
<property name="binaryConfiguration"> | |
<bean class="org.apache.ignite.configuration.BinaryConfiguration"> | |
<property name="compactFooter" value="false"/> | |
</bean> | |
</property> | |
<property name="cacheConfiguration"> | |
<list> | |
<bean id="ICEP_JOBS_config" class="org.apache.ignite.configuration.CacheConfiguration"> | |
<!-- Setting up basic cache parameters --> | |
<property name="name" value="ICEP_JOBS"/> | |
<property name="cacheMode" value="PARTITIONED"/> | |
<property name="rebalanceMode" value="ASYNC"/> | |
<property name="interceptor"> | |
<bean class="com.romeh.failover.demo.JobsInterceptor"></bean> | |
</property> | |
<property name="indexedTypes"> | |
<list> | |
<value>java.lang.String</value> | |
<value>com.romeh.failover.demo.Job</value> | |
</list> | |
</property> | |
</bean> | |
<bean id="ICEP_NODES_config" class="org.apache.ignite.configuration.CacheConfiguration"> | |
<!-- Setting up basic cache parameters --> | |
<property name="name" value="ICEP_NODES"/> | |
<property name="cacheMode" value="PARTITIONED"/> | |
<property name="rebalanceMode" value="ASYNC"/> | |
<property name="interceptor"> | |
<bean class="com.romeh.failover.demo.NodesInterceptor"></bean> | |
</property> | |
</bean> | |
<bean id="ICEP_REQUEST_DATA_config" class="org.apache.ignite.configuration.CacheConfiguration"> | |
<!-- Setting up basic cache parameters --> | |
<property name="name" value="ICEP_REQUEST_DATA"/> | |
<property name="cacheMode" value="PARTITIONED"/> | |
<property name="rebalanceMode" value="ASYNC"/> | |
<property name="indexedTypes"> | |
<list> | |
<value>java.time.LocalDateTime</value> | |
<value>com.romeh.failover.demo.Request</value> | |
</list> | |
</property> | |
</bean> | |
</list> | |
</property> | |
</bean> | |
</beans> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment