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