| <?xml version="1.0" encoding="UTF-8"?> |
| |
| <!-- |
| Licensed to the Apache Software Foundation (ASF) under one or more |
| contributor license agreements. See the NOTICE file distributed with |
| this work for additional information regarding copyright ownership. |
| The ASF licenses this file to You 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. |
| --> |
| |
| <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.xsd |
| http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util.xsd"> |
| |
| <description> |
| </description> |
| |
| <import resource="dsi-load-base.xml"/> |
| |
| <bean class="org.apache.ignite.configuration.IgniteConfiguration" parent="grid.cfg"> |
| <property name="userAttributes"> |
| <util:map> |
| <entry key="segment" value="server"/> |
| </util:map> |
| </property> |
| |
| |
| <property name="cacheConfiguration"> |
| <util:list> |
| <bean class="org.apache.ignite.configuration.CacheConfiguration"> |
| <property name="name" value="PARTITIONED_CACHE"/> |
| <property name="cacheMode" value="PARTITIONED"/> |
| <property name="rebalanceMode" value="SYNC"/> |
| <property name="writeSynchronizationMode" value="FULL_SYNC"/> |
| <property name="evictionPolicy"> |
| <bean |
| class="org.apache.ignite.cache.eviction.lru.LruEvictionPolicy"> |
| <property name="maxSize" value="500000"/> |
| </bean> |
| </property> |
| <!-- 1 backup --> |
| <property name="backups" value="1"/> |
| <property name="affinity"> |
| <bean class="org.apache.ignite.cache.affinity.rendezvous.RendezvousAffinityFunction"> |
| <property name="excludeNeighbors" value="true"/> |
| </bean> |
| </property> |
| <property name="indexFixedTyping" value="true"/> |
| <property name="atomicSequenceReserveSize" value="100000"/> |
| <property name="evictSynchronized" value="false"/> |
| <property name="swapEnabled" value="false"/> |
| <property name="defaultTxConcurrency" value="PESSIMISTIC"/> |
| <property name="defaultTxIsolation" value="REPEATABLE_READ"/> |
| <property name="dgcSuspectLockTimeout" value="60000"/> |
| <property name="indexAnalyzeSampleSize" value="100"/> |
| </bean> |
| <bean class="org.apache.ignite.configuration.CacheConfiguration"> |
| <property name="name" value="REPLICATED_CACHE"/> |
| <property name="cacheMode" value="REPLICATED"/> |
| <property name="rebalanceMode" value="NONE"/> |
| <property name="writeSynchronizationMode" value="FULL_SYNC"/> |
| <property name="swapEnabled" value="false"/> |
| <property name="indexFixedTyping" value="false"/> |
| </bean> |
| </util:list> |
| </property> |
| </bean> |
| |
| |
| <util:list id="lifecycleBeans"> |
| <!-- <bean class="org.apache.ignite.lifecycle.LifecycleBean" /> --> |
| </util:list> |
| </beans> |