apache-ignite

Форк
0
/
spring-cache-load.xml 
94 строки · 4.1 Кб
1
<?xml version="1.0" encoding="UTF-8"?>
2

3
<!--
4
  Licensed to the Apache Software Foundation (ASF) under one or more
5
  contributor license agreements.  See the NOTICE file distributed with
6
  this work for additional information regarding copyright ownership.
7
  The 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
9
  the License.  You may obtain a copy of the License at
10

11
       http://www.apache.org/licenses/LICENSE-2.0
12

13
  Unless required by applicable law or agreed to in writing, software
14
  distributed under the License is distributed on an "AS IS" BASIS,
15
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
  See the License for the specific language governing permissions and
17
  limitations under the License.
18
-->
19

20
<!--
21
    Ignite Spring configuration file to startup grid cache.
22

23
    When 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

26
    When starting Ignite from Java IDE, pass path to this file into Ignition:
27
    Ignition.start("path-to-this-file/example-benchmark.xml");
28
-->
29
<beans xmlns="http://www.springframework.org/schema/beans"
30
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
31
       xsi:schemaLocation="
32
        http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd">
33
    <!--
34
        Optional description.
35
    -->
36
    <description>
37
        Spring file for grid configuration with benchmark.
38
    </description>
39

40
    <!--
41
        Configuration below demonstrates how to setup a collision and failover SPI's
42
        to enable work stealing from overloaded nodes to underloaded nodes.
43

44
        Note that for job stealing to work, you must always use both,
45
        GridJobStealingCollisionSpi 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
        <!--
62
            Uncomment this to provide TCP discovery SPI (predefined addresses).
63
            Use 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
                                <!--
73
                                    List all IP/port configurations that potentially
74
                                    can be started first in examples. We are assuming
75
                                    grid 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

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.