blob: b950768aad2437e73e06e548c2cb8aa512feedc2 [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>
32 <network>
33 <port auto-increment="true" port-count="100">5701</port>
34 <outbound-ports>
35 <!--
tom1a2908c2014-09-23 16:37:39 -070036 Allowed port range when connecting to other nodes.
37 0 or * means use system provided port.
tom5a18e802014-09-18 12:38:15 -070038 -->
39 <ports>0</ports>
40 </outbound-ports>
41 <join>
42 <multicast enabled="true">
43 <multicast-group>224.2.2.3</multicast-group>
44 <multicast-port>54327</multicast-port>
45 </multicast>
46 <tcp-ip enabled="false">
47 <interface>127.0.0.1</interface>
48 </tcp-ip>
tom5a18e802014-09-18 12:38:15 -070049 </join>
50 <interfaces enabled="true">
tomecd0fbd2014-09-19 08:47:05 -070051 <interface>192.168.56.*</interface>
tom5a18e802014-09-18 12:38:15 -070052 </interfaces>
53 <ssl enabled="false"/>
54 <socket-interceptor enabled="false"/>
55 <symmetric-encryption enabled="false">
56 <!--
57 encryption algorithm such as
58 DES/ECB/PKCS5Padding,
59 PBEWithMD5AndDES,
60 AES/CBC/PKCS5Padding,
61 Blowfish,
62 DESede
63 -->
64 <algorithm>PBEWithMD5AndDES</algorithm>
65 <!-- salt value to use when generating the secret key -->
66 <salt>thesalt</salt>
67 <!-- pass phrase to use when generating the secret key -->
68 <password>thepass</password>
69 <!-- iteration count to use when generating the secret key -->
70 <iteration-count>19</iteration-count>
71 </symmetric-encryption>
72 </network>
73 <partition-group enabled="false"/>
tom1a2908c2014-09-23 16:37:39 -070074 <executor-service name="default">
tom5a18e802014-09-18 12:38:15 -070075 <pool-size>16</pool-size>
tom1a2908c2014-09-23 16:37:39 -070076 <!--Queue capacity. 0 means Integer.MAX_VALUE.-->
tom5a18e802014-09-18 12:38:15 -070077 <queue-capacity>0</queue-capacity>
78 </executor-service>
79 <queue name="default">
80 <!--
81 Maximum size of the queue. When a JVM's local queue size reaches the maximum,
82 all put/offer operations will get blocked until the queue size
83 of the JVM goes down below the maximum.
84 Any integer between 0 and Integer.MAX_VALUE. 0 means
85 Integer.MAX_VALUE. Default is 0.
86 -->
87 <max-size>0</max-size>
88 <!--
89 Number of backups. If 1 is set as the backup-count for example,
90 then all entries of the map will be copied to another JVM for
91 fail-safety. 0 means no backup.
92 -->
93 <backup-count>1</backup-count>
tom1a2908c2014-09-23 16:37:39 -070094
tom5a18e802014-09-18 12:38:15 -070095 <!--
96 Number of async backups. 0 means no backup.
97 -->
98 <async-backup-count>0</async-backup-count>
tom1a2908c2014-09-23 16:37:39 -070099
tom5a18e802014-09-18 12:38:15 -0700100 <empty-queue-ttl>-1</empty-queue-ttl>
101 </queue>
tom5a18e802014-09-18 12:38:15 -0700102 <map name="default">
103 <!--
tom1a2908c2014-09-23 16:37:39 -0700104 Data type that will be used for storing recordMap.
105 Possible values:
106 BINARY (default): keys and values will be stored as binary data
107 OBJECT : values will be stored in their object forms
108 OFFHEAP : values will be stored in non-heap region of JVM
tom5a18e802014-09-18 12:38:15 -0700109 -->
110 <in-memory-format>BINARY</in-memory-format>
tom1a2908c2014-09-23 16:37:39 -0700111
tom5a18e802014-09-18 12:38:15 -0700112 <!--
113 Number of backups. If 1 is set as the backup-count for example,
114 then all entries of the map will be copied to another JVM for
115 fail-safety. 0 means no backup.
116 -->
117 <backup-count>1</backup-count>
118 <!--
119 Number of async backups. 0 means no backup.
120 -->
121 <async-backup-count>0</async-backup-count>
122 <!--
123 Maximum number of seconds for each entry to stay in the map. Entries that are
124 older than <time-to-live-seconds> and not updated for <time-to-live-seconds>
125 will get automatically evicted from the map.
126 Any integer between 0 and Integer.MAX_VALUE. 0 means infinite. Default is 0.
127 -->
128 <time-to-live-seconds>0</time-to-live-seconds>
129 <!--
130 Maximum number of seconds for each entry to stay idle in the map. Entries that are
131 idle(not touched) for more than <max-idle-seconds> will get
132 automatically evicted from the map. Entry is touched if get, put or containsKey is called.
133 Any integer between 0 and Integer.MAX_VALUE. 0 means infinite. Default is 0.
134 -->
135 <max-idle-seconds>0</max-idle-seconds>
136 <!--
137 Valid values are:
138 NONE (no eviction),
139 LRU (Least Recently Used),
140 LFU (Least Frequently Used).
141 NONE is the default.
142 -->
143 <eviction-policy>NONE</eviction-policy>
144 <!--
145 Maximum size of the map. When max size is reached,
146 map is evicted based on the policy defined.
147 Any integer between 0 and Integer.MAX_VALUE. 0 means
148 Integer.MAX_VALUE. Default is 0.
149 -->
150 <max-size policy="PER_NODE">0</max-size>
151 <!--
152 When max. size is reached, specified percentage of
153 the map will be evicted. Any integer between 0 and 100.
154 If 25 is set for example, 25% of the entries will
155 get evicted.
156 -->
157 <eviction-percentage>25</eviction-percentage>
158 <!--
tom1a2908c2014-09-23 16:37:39 -0700159 Minimum time in milliseconds which should pass before checking
160 if a partition of this map is evictable or not.
161 Default value is 100 millis.
162 -->
163 <min-eviction-check-millis>100</min-eviction-check-millis>
164 <!--
tom5a18e802014-09-18 12:38:15 -0700165 While recovering from split-brain (network partitioning),
166 map entries in the small cluster will merge into the bigger cluster
167 based on the policy set here. When an entry merge into the
168 cluster, there might an existing entry with the same key already.
169 Values of these entries might be different for that same key.
170 Which value should be set for the key? Conflict is resolved by
171 the policy set here. Default policy is PutIfAbsentMapMergePolicy
172
173 There are built-in merge policies such as
174 com.hazelcast.map.merge.PassThroughMergePolicy; entry will be added if there is no existing entry for the key.
175 com.hazelcast.map.merge.PutIfAbsentMapMergePolicy ; entry will be added if the merging entry doesn't exist in the cluster.
176 com.hazelcast.map.merge.HigherHitsMapMergePolicy ; entry with the higher hits wins.
177 com.hazelcast.map.merge.LatestUpdateMapMergePolicy ; entry with the latest update wins.
178 -->
179 <merge-policy>com.hazelcast.map.merge.PassThroughMergePolicy</merge-policy>
tom1a2908c2014-09-23 16:37:39 -0700180
tom5a18e802014-09-18 12:38:15 -0700181 </map>
182
183 <multimap name="default">
184 <backup-count>1</backup-count>
185 <value-collection-type>SET</value-collection-type>
186 </multimap>
187
188 <multimap name="default">
189 <backup-count>1</backup-count>
190 <value-collection-type>SET</value-collection-type>
191 </multimap>
192
193 <list name="default">
194 <backup-count>1</backup-count>
195 </list>
196
197 <set name="default">
198 <backup-count>1</backup-count>
199 </set>
200
201 <jobtracker name="default">
202 <max-thread-size>0</max-thread-size>
203 <!-- Queue size 0 means number of partitions * 2 -->
204 <queue-size>0</queue-size>
205 <retry-count>0</retry-count>
206 <chunk-size>1000</chunk-size>
207 <communicate-stats>true</communicate-stats>
208 <topology-changed-strategy>CANCEL_RUNNING_OPERATION</topology-changed-strategy>
209 </jobtracker>
210
211 <semaphore name="default">
212 <initial-permits>0</initial-permits>
213 <backup-count>1</backup-count>
214 <async-backup-count>0</async-backup-count>
215 </semaphore>
216
217 <serialization>
218 <portable-version>0</portable-version>
219 </serialization>
220
tom1a2908c2014-09-23 16:37:39 -0700221 <services enable-defaults="true"/>
222
tom5a18e802014-09-18 12:38:15 -0700223</hazelcast>