Advertisement
Guest User

Untitled

a guest
Nov 14th, 2020
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 7.01 KB | None | 0 0
  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. <beans xmlns="http://www.springframework.org/schema/beans"
  21.       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  22.       xsi:schemaLocation="http://www.springframework.org/schema/beans
  23.        http://www.springframework.org/schema/beans/spring-beans.xsd">
  24.     <bean id="ignite.cfg" class="org.apache.ignite.configuration.IgniteConfiguration">
  25.         <property name="cacheConfiguration">
  26.         <bean class="org.apache.ignite.configuration.CacheConfiguration">
  27.                 <property name="name" value="ScenarioCache"/>
  28.                 <property name="queryEntities">
  29.                     <list>
  30.                         <bean class="org.apache.ignite.cache.QueryEntity">
  31.                             <property name="keyType" value="Scenario"/>
  32.                             <property name="valueType" value="Result"/>
  33.                             <property name="fields">
  34.                                 <map>
  35.                                     <entry key="val1" value="java.lang.Double"/>
  36.                                     <entry key="val2" value="java.lang.Double"/>
  37.                                     <entry key="val3" value="java.lang.Double"/>
  38.                                     <entry key="val4" value="java.lang.Double"/>
  39.                                     <entry key="val5" value="java.lang.Double"/>
  40.                                     <entry key="val6" value="java.lang.Double"/>
  41.                                     <entry key="val7" value="java.lang.Double"/>
  42.                                     <entry key="val8" value="java.lang.Double"/>
  43.                                     <entry key="result" value="java.lang.Boolean"/>
  44.                                     <entry key="result2" value="java.lang.Double"/>
  45.                                 </map>
  46.                             </property>
  47.                             <property name="keyFields">
  48.                                 <set>
  49.                                     <value>val1</value>
  50.                                     <value>val2</value>
  51.                                     <value>val3</value>
  52.                                     <value>val4</value>
  53.                                     <value>val5</value>
  54.                                     <value>val6</value>
  55.                                     <value>val7</value>
  56.                                     <value>val8</value>
  57.                                 </set>
  58.                             </property>
  59.                            
  60.                         <!-- Defining indexed fields.-->
  61.                         <property name="indexes">
  62.                             <list>
  63.                          
  64.                                 <bean class="org.apache.ignite.cache.QueryIndex">
  65.                                     <constructor-arg>
  66.                                         <list>
  67.                                             <value>val1</value>
  68.                                             <value>val2</value>
  69.                                             <value>val3</value>
  70.                                             <value>val4</value>
  71.                                             <value>val5</value>
  72.                                             <value>val6</value>
  73.                                             <value>val7</value>
  74.                                             <value>val8</value>
  75.                                         </list>
  76.                                     </constructor-arg>
  77.                                     <constructor-arg value="SORTED"/>
  78.                                 </bean>
  79.                             </list>
  80.                         </property>                            
  81.                         </bean>
  82.                     </list>
  83.                 </property>
  84.         </bean>    
  85.         </property>
  86.         <!-- Enabling Apache Ignite Persistent Store. -->
  87.         <property name="dataStorageConfiguration">
  88.             <bean class="org.apache.ignite.configuration.DataStorageConfiguration">
  89.                
  90.                 <!-- set the size of wal segments to 2GB -->
  91.                 <property name="walSegmentSize" value="#{500 * 1024 * 1024}"/>
  92.                 <!--property name="maxWalArchiveSize" value="#{15000 * 1024 * 1024}"/-->
  93.  
  94.  
  95.                 <property name="defaultDataRegionConfiguration">
  96.                     <bean class="org.apache.ignite.configuration.DataRegionConfiguration">
  97.                         <property name="persistenceEnabled" value="true"/>
  98.  
  99.            
  100.                 <property name="name" value="Default_Region"/>
  101.                 <!-- Setting the size of the default region to 4GB. -->
  102.                 <property name="maxSize" value="#{20L * 1024 * 1024 * 1024}"/>
  103.             <property name="checkpointPageBufferSize" value="#{10192L * 1024 * 1024}"/>
  104.             <!--property name="writeThrottlingEnabled" value="true"/-->
  105.                     </bean>
  106.                 </property>
  107.         <property name="storagePath" value="/media/wolfgang/0d4926b4-0481-48b7-aa78-cb6c0242b3b3/ApacheIgniteStore"/>
  108.                 <property name="walPath" value="/media/storage/Volume1/ApacheIgniteWalFiles/wal"/>
  109.             <property name="walArchivePath" value="/media/storage/Volume1/ApacheIgniteWalFiles/wal-archive"/>
  110.         <property name="walMode" value="BACKGROUND"/>
  111.             </bean>
  112.         </property>
  113.  
  114.         <!-- Explicitly configure TCP discovery SPI to provide a list of initial nodes. -->
  115.         <property name="discoverySpi">
  116.             <bean class="org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi">
  117.                 <property name="ipFinder">
  118.                     <!-- Uncomment static IP finder to enable static-based discovery of initial nodes. -->
  119.                     <!--<bean class="org.apache.ignite.spi.discovery.tcp.ipfinder.vm.TcpDiscoveryVmIpFinder">-->
  120.                     <bean class="org.apache.ignite.spi.discovery.tcp.ipfinder.multicast.TcpDiscoveryMulticastIpFinder">
  121.                         <property name="addresses">
  122.                             <list>
  123.                                 <!-- In distributed environment, replace with actual host IP address. -->
  124.                                 <value>127.0.0.1:47500..47502</value>
  125.                             </list>
  126.                         </property>
  127.                     </bean>
  128.                 </property>
  129.             </bean>
  130.         </property>
  131.     </bean>
  132. </beans>
  133.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement