blob: a137c4b99db0bf3815b0966e10c82e972c534062 [file] [log] [blame]
tom5a18e802014-09-18 12:38:15 -07001<?xml version="1.0" encoding="UTF-8"?>
alshabibab984662014-12-04 18:56:18 -08002
tom1a2908c2014-09-23 16:37:39 -07003<!--
alshabibab984662014-12-04 18:56:18 -08004 ~ Copyright (c) 2008-2013, Hazelcast, Inc. All Rights Reserved.
5 ~ Copyright 2014 Open Networking Laboratory
tom1a2908c2014-09-23 16:37:39 -07006 ~
7 ~ Licensed under the Apache License, Version 2.0 (the "License");
8 ~ you may not use this file except in compliance with the License.
9 ~ You may obtain a copy of the License at
10 ~
alshabibab984662014-12-04 18:56:18 -080011 ~ http://www.apache.org/licenses/LICENSE-2.0
tom1a2908c2014-09-23 16:37:39 -070012 ~
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 The default Hazelcast configuration. This is used when:
22
23 - no hazelcast.xml if present
24
25-->
26<hazelcast xsi:schemaLocation="http://www.hazelcast.com/schema/config hazelcast-config-3.3.xsd"
tom5a18e802014-09-18 12:38:15 -070027 xmlns="http://www.hazelcast.com/schema/config"
28 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
29 <group>
30 <name>onos</name>
31 <password>rocks</password>
32 </group>
33 <management-center enabled="false">http://localhost:8080/mancenter</management-center>
Patrick Liu080aeb42014-11-12 10:13:37 -080034 <properties>
35 <property name="hazelcast.max.no.heartbeat.seconds">30</property>
36 <property name="hazelcast.merge.first.run.delay.seconds">30</property>
37 <property name="hazelcast.merge.next.run.delay.seconds">30</property>
38 </properties>
tom5a18e802014-09-18 12:38:15 -070039 <network>
40 <port auto-increment="true" port-count="100">5701</port>
41 <outbound-ports>
42 <!--
tom1a2908c2014-09-23 16:37:39 -070043 Allowed port range when connecting to other nodes.
44 0 or * means use system provided port.
tom5a18e802014-09-18 12:38:15 -070045 -->
46 <ports>0</ports>
47 </outbound-ports>
48 <join>
49 <multicast enabled="true">
50 <multicast-group>224.2.2.3</multicast-group>
51 <multicast-port>54327</multicast-port>
52 </multicast>
53 <tcp-ip enabled="false">
54 <interface>127.0.0.1</interface>
55 </tcp-ip>
tom5a18e802014-09-18 12:38:15 -070056 </join>
57 <interfaces enabled="true">
tomecd0fbd2014-09-19 08:47:05 -070058 <interface>192.168.56.*</interface>
tom5a18e802014-09-18 12:38:15 -070059 </interfaces>
60 <ssl enabled="false"/>
61 <socket-interceptor enabled="false"/>
62 <symmetric-encryption enabled="false">
63 <!--
64 encryption algorithm such as
65 DES/ECB/PKCS5Padding,
66 PBEWithMD5AndDES,
67 AES/CBC/PKCS5Padding,
68 Blowfish,
69 DESede
70 -->
71 <algorithm>PBEWithMD5AndDES</algorithm>
72 <!-- salt value to use when generating the secret key -->
73 <salt>thesalt</salt>
74 <!-- pass phrase to use when generating the secret key -->
75 <password>thepass</password>
76 <!-- iteration count to use when generating the secret key -->
77 <iteration-count>19</iteration-count>
78 </symmetric-encryption>
79 </network>
80 <partition-group enabled="false"/>
tom1a2908c2014-09-23 16:37:39 -070081 <executor-service name="default">
tom5a18e802014-09-18 12:38:15 -070082 <pool-size>16</pool-size>
tom1a2908c2014-09-23 16:37:39 -070083 <!--Queue capacity. 0 means Integer.MAX_VALUE.-->
tom5a18e802014-09-18 12:38:15 -070084 <queue-capacity>0</queue-capacity>
85 </executor-service>
86 <queue name="default">
87 <!--
88 Maximum size of the queue. When a JVM's local queue size reaches the maximum,
89 all put/offer operations will get blocked until the queue size
90 of the JVM goes down below the maximum.
91 Any integer between 0 and Integer.MAX_VALUE. 0 means
92 Integer.MAX_VALUE. Default is 0.
93 -->
94 <max-size>0</max-size>
95 <!--
96 Number of backups. If 1 is set as the backup-count for example,
97 then all entries of the map will be copied to another JVM for
98 fail-safety. 0 means no backup.
99 -->
100 <backup-count>1</backup-count>
tom1a2908c2014-09-23 16:37:39 -0700101
tom5a18e802014-09-18 12:38:15 -0700102 <!--
103 Number of async backups. 0 means no backup.
104 -->
105 <async-backup-count>0</async-backup-count>
tom1a2908c2014-09-23 16:37:39 -0700106
tom5a18e802014-09-18 12:38:15 -0700107 <empty-queue-ttl>-1</empty-queue-ttl>
108 </queue>
tom5a18e802014-09-18 12:38:15 -0700109 <map name="default">
110 <!--
tom1a2908c2014-09-23 16:37:39 -0700111 Data type that will be used for storing recordMap.
112 Possible values:
113 BINARY (default): keys and values will be stored as binary data
114 OBJECT : values will be stored in their object forms
115 OFFHEAP : values will be stored in non-heap region of JVM
tom5a18e802014-09-18 12:38:15 -0700116 -->
117 <in-memory-format>BINARY</in-memory-format>
tom1a2908c2014-09-23 16:37:39 -0700118
tom5a18e802014-09-18 12:38:15 -0700119 <!--
120 Number of backups. If 1 is set as the backup-count for example,
121 then all entries of the map will be copied to another JVM for
122 fail-safety. 0 means no backup.
123 -->
124 <backup-count>1</backup-count>
125 <!--
126 Number of async backups. 0 means no backup.
127 -->
128 <async-backup-count>0</async-backup-count>
129 <!--
130 Maximum number of seconds for each entry to stay in the map. Entries that are
131 older than <time-to-live-seconds> and not updated for <time-to-live-seconds>
132 will get automatically evicted from the map.
133 Any integer between 0 and Integer.MAX_VALUE. 0 means infinite. Default is 0.
134 -->
135 <time-to-live-seconds>0</time-to-live-seconds>
136 <!--
137 Maximum number of seconds for each entry to stay idle in the map. Entries that are
138 idle(not touched) for more than <max-idle-seconds> will get
139 automatically evicted from the map. Entry is touched if get, put or containsKey is called.
140 Any integer between 0 and Integer.MAX_VALUE. 0 means infinite. Default is 0.
141 -->
142 <max-idle-seconds>0</max-idle-seconds>
143 <!--
144 Valid values are:
145 NONE (no eviction),
146 LRU (Least Recently Used),
147 LFU (Least Frequently Used).
148 NONE is the default.
149 -->
150 <eviction-policy>NONE</eviction-policy>
151 <!--
152 Maximum size of the map. When max size is reached,
153 map is evicted based on the policy defined.
154 Any integer between 0 and Integer.MAX_VALUE. 0 means
155 Integer.MAX_VALUE. Default is 0.
156 -->
157 <max-size policy="PER_NODE">0</max-size>
158 <!--
159 When max. size is reached, specified percentage of
160 the map will be evicted. Any integer between 0 and 100.
161 If 25 is set for example, 25% of the entries will
162 get evicted.
163 -->
164 <eviction-percentage>25</eviction-percentage>
165 <!--
tom1a2908c2014-09-23 16:37:39 -0700166 Minimum time in milliseconds which should pass before checking
167 if a partition of this map is evictable or not.
168 Default value is 100 millis.
169 -->
170 <min-eviction-check-millis>100</min-eviction-check-millis>
171 <!--
tom5a18e802014-09-18 12:38:15 -0700172 While recovering from split-brain (network partitioning),
173 map entries in the small cluster will merge into the bigger cluster
174 based on the policy set here. When an entry merge into the
175 cluster, there might an existing entry with the same key already.
176 Values of these entries might be different for that same key.
177 Which value should be set for the key? Conflict is resolved by
178 the policy set here. Default policy is PutIfAbsentMapMergePolicy
179
180 There are built-in merge policies such as
181 com.hazelcast.map.merge.PassThroughMergePolicy; entry will be added if there is no existing entry for the key.
182 com.hazelcast.map.merge.PutIfAbsentMapMergePolicy ; entry will be added if the merging entry doesn't exist in the cluster.
183 com.hazelcast.map.merge.HigherHitsMapMergePolicy ; entry with the higher hits wins.
184 com.hazelcast.map.merge.LatestUpdateMapMergePolicy ; entry with the latest update wins.
185 -->
Yuta HIGUCHI77ee1fe2014-11-12 10:40:06 -0800186 <merge-policy>com.hazelcast.map.merge.PutIfAbsentMapMergePolicy</merge-policy>
tom5a18e802014-09-18 12:38:15 -0700187 </map>
188
189 <multimap name="default">
190 <backup-count>1</backup-count>
191 <value-collection-type>SET</value-collection-type>
192 </multimap>
193
194 <multimap name="default">
195 <backup-count>1</backup-count>
196 <value-collection-type>SET</value-collection-type>
197 </multimap>
198
199 <list name="default">
200 <backup-count>1</backup-count>
201 </list>
202
203 <set name="default">
204 <backup-count>1</backup-count>
205 </set>
206
207 <jobtracker name="default">
208 <max-thread-size>0</max-thread-size>
209 <!-- Queue size 0 means number of partitions * 2 -->
210 <queue-size>0</queue-size>
211 <retry-count>0</retry-count>
212 <chunk-size>1000</chunk-size>
213 <communicate-stats>true</communicate-stats>
214 <topology-changed-strategy>CANCEL_RUNNING_OPERATION</topology-changed-strategy>
215 </jobtracker>
216
217 <semaphore name="default">
218 <initial-permits>0</initial-permits>
219 <backup-count>1</backup-count>
220 <async-backup-count>0</async-backup-count>
221 </semaphore>
222
223 <serialization>
224 <portable-version>0</portable-version>
225 </serialization>
226
tom1a2908c2014-09-23 16:37:39 -0700227 <services enable-defaults="true"/>
228
tom5a18e802014-09-18 12:38:15 -0700229</hazelcast>