apache-ignite
1<?xml version="1.0" encoding="UTF-8"?>
2
3<!--
4Licensed to the Apache Software Foundation (ASF) under one or more
5contributor license agreements. See the NOTICE file distributed with
6this work for additional information regarding copyright ownership.
7The ASF licenses this file to You under the Apache License, Version 2.0
8(the "License"); you may not use this file except in compliance with
9the License. You may obtain a copy of the License at
10
11http://www.apache.org/licenses/LICENSE-2.0
12
13Unless required by applicable law or agreed to in writing, software
14distributed under the License is distributed on an "AS IS" BASIS,
15WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16See the License for the specific language governing permissions and
17limitations under the License.
18-->
19
20<!--
21Ignite Spring configuration file to startup grid cache.
22
23When starting a standalone Ignite node, you need to execute the following command:
24{IGNITE_HOME}/bin/ignite.{bat|sh} path-to-this-file/example-cache.xml
25
26When starting Ignite from Java IDE, pass path to this file into Ignition:
27Ignition.start("path-to-this-file/example-benchmark.xml");
28-->
29<beans xmlns="http://www.springframework.org/schema/beans"30xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"31xsi:schemaLocation="32http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd">33<!--34Optional description.
35-->
36<description>37Spring file for grid configuration with benchmark.
38</description>39
40<!--41Configuration below demonstrates how to setup a collision and failover SPI's
42to enable work stealing from overloaded nodes to underloaded nodes.
43
44Note that for job stealing to work, you must always use both,
45GridJobStealingCollisionSpi and GridJobStealingFailoverSPI.
46-->
47<bean id="grid.cfg" class="org.apache.ignite.configuration.IgniteConfiguration">48<property name="localHost" value="127.0.0.1"/>49
50<property name="cacheConfiguration">51<bean class="org.apache.ignite.configuration.CacheConfiguration">52<property name="name" value="test-cache"/>53<property name="cacheMode" value="PARTITIONED"/>54
55<property name="rebalanceMode" value="SYNC"/>56</bean>57</property>58
59<property name="networkTimeout" value="10000"/>60
61<!--62Uncomment this to provide TCP discovery SPI (predefined addresses).
63Use the addresses list to provide IP addresses of initial nodes in the grid
64(at least one address must be provided).
65-->
66<property name="discoverySpi">67<bean class="org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi">68<property name="ipFinder">69<bean class="org.apache.ignite.spi.discovery.tcp.ipfinder.vm.TcpDiscoveryVmIpFinder">70<property name="addresses">71<list>72<!--73List all IP/port configurations that potentially
74can be started first in examples. We are assuming
75grid of size 10 or less.
76-->
77<value>127.0.0.1:47500</value>78<value>127.0.0.1:47501</value>79<value>127.0.0.1:47502</value>80<value>127.0.0.1:47503</value>81<value>127.0.0.1:47504</value>82<value>127.0.0.1:47505</value>83<value>127.0.0.1:47506</value>84<value>127.0.0.1:47507</value>85<value>127.0.0.1:47508</value>86<value>127.0.0.1:47509</value>87</list>88</property>89</bean>90</property>91</bean>92</property>93</bean>94</beans>95