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