blob: 267cd58650f298b1aeb1baad185d54092804fbd8 [file] [log] [blame]
Pavlin Radoslavov1eee2c82013-10-15 02:30:32 -07001<hazelcast xsi:schemaLocation="http://www.hazelcast.com/schema/config
2 http://www.hazelcast.com/schema/config/hazelcast-config-3.0.xsd"
3 xmlns="http://www.hazelcast.com/schema/config"
4 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
5
6 <map name="*">
7
8 <!--
9 Number of sync-backups. If 1 is set as the backup-count for example,
10 then all entries of the map will be copied to another JVM for
11 ail-safety. Valid numbers are 0 (no backup), 1, 2, 3.
12 -->
13 <backup-count>0</backup-count>
14
15 <!--
16 Number of async-backups. If 1 is set as the backup-count for example,
17 then all entries of the map will be copied to another JVM for
18 fail-safety. Valid numbers are 0 (no backup), 1, 2, 3.
19 -->
20 <async-backup-count>3</async-backup-count>
21
22 <!--
23 Can we read the local backup entries? Default value is false for
24 strong consistency. Being able to read backup data will give you
25 greater performance.
26 -->
27 <read-backup-data>true</read-backup-data>
28
29 <near-cache>
30 <!--
31 Maximum size of the near cache. When max size is reached,
32 cache is evicted based on the policy defined.
33 Any integer between 0 and Integer.MAX_VALUE. 0 means
34 Integer.MAX_VALUE. Default is 0.
35 -->
36 <max-size>0</max-size>
37 <!--
38 Maximum number of seconds for each entry to stay in the near cache.
39 Entries that are older than <time-to-live-seconds> will get
40 automatically evicted from the near cache.
41 Any integer between 0 and Integer.MAX_VALUE. 0 means infinite.
42 Default is 0.
43 -->
44 <time-to-live-seconds>0</time-to-live-seconds>
45
46 <!--
47 Maximum number of seconds each entry can stay in the near cache as
48 untouched (not-read).
49 Entries that are not read (touched) more than <max-idle-seconds>
50 value will get removed from the near cache.
51 Any integer between 0 and Integer.MAX_VALUE. 0 means
52 Integer.MAX_VALUE. Default is 0.
53 -->
54 <max-idle-seconds>0</max-idle-seconds>
55
56 <!--
57 Valid values are:
58 NONE (no extra eviction, <time-to-live-seconds> may still apply),
59 LRU (Least Recently Used),
60 LFU (Least Frequently Used).
61 LRU is the default.
62 Regardless of the eviction policy used, <time-to-live-seconds> will
63 still apply.
64 -->
65 <eviction-policy>NONE</eviction-policy>
66
67 <!--
68 Should the cached entries get evicted if the entries are changed
69 (updated or removed).
70 true of false. Default is true.
71 -->
72 <invalidate-on-change>true</invalidate-on-change>
73
74 </near-cache>
75 </map>
76
77 <topic name="*">
78 <global-ordering-enabled>false</global-ordering-enabled>
79 </topic>
80
81 <network>
82 <port auto-increment="true">5701</port>
83 <join>
84 <multicast enabled="true">
85 <multicast-group>224.2.2.3</multicast-group>
86 <multicast-port>54327</multicast-port>
87 </multicast>
88 <!--
89 <tcp-ip enabled="false">
90 <member>machine1</member>
91 <member>machine2</member>
92 <member>machine3:5799</member>
93 <member>192.168.1.0-7</member>
94 <member>192.168.1.21</member>
95 </tcp-ip>
96 -->
97 <aws enabled="false">
98 </aws>
99 </join>
100 </network>
101
102</hazelcast>