blob: d97b3589b2d958a9578e5f4bf569e92d08e1a21c [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
Yuta HIGUCHI6a643132014-03-18 22:39:27 -07006 <!-- Configuration of maps used as a data store. -->
7 <map name="datastore://*">
8 <!-- must use 'sync' backup to imitate other data store -->
9 <backup-count>3</backup-count>
10 <async-backup-count>0</async-backup-count>
11 <!-- must be false for strong consistency -->
12 <read-backup-data>false</read-backup-data>
13 <!-- near cache must not be used -->
14 </map>
15
Pavlin Radoslavov1eee2c82013-10-15 02:30:32 -070016 <map name="*">
17
18 <!--
19 Number of sync-backups. If 1 is set as the backup-count for example,
20 then all entries of the map will be copied to another JVM for
21 ail-safety. Valid numbers are 0 (no backup), 1, 2, 3.
22 -->
23 <backup-count>0</backup-count>
24
25 <!--
26 Number of async-backups. If 1 is set as the backup-count for example,
27 then all entries of the map will be copied to another JVM for
28 fail-safety. Valid numbers are 0 (no backup), 1, 2, 3.
29 -->
30 <async-backup-count>3</async-backup-count>
31
32 <!--
33 Can we read the local backup entries? Default value is false for
34 strong consistency. Being able to read backup data will give you
35 greater performance.
36 -->
37 <read-backup-data>true</read-backup-data>
38
39 <near-cache>
40 <!--
41 Maximum size of the near cache. When max size is reached,
42 cache is evicted based on the policy defined.
43 Any integer between 0 and Integer.MAX_VALUE. 0 means
44 Integer.MAX_VALUE. Default is 0.
45 -->
46 <max-size>0</max-size>
47 <!--
48 Maximum number of seconds for each entry to stay in the near cache.
49 Entries that are older than <time-to-live-seconds> will get
50 automatically evicted from the near cache.
51 Any integer between 0 and Integer.MAX_VALUE. 0 means infinite.
52 Default is 0.
53 -->
54 <time-to-live-seconds>0</time-to-live-seconds>
55
56 <!--
57 Maximum number of seconds each entry can stay in the near cache as
58 untouched (not-read).
59 Entries that are not read (touched) more than <max-idle-seconds>
60 value will get removed from the near cache.
61 Any integer between 0 and Integer.MAX_VALUE. 0 means
62 Integer.MAX_VALUE. Default is 0.
63 -->
64 <max-idle-seconds>0</max-idle-seconds>
65
66 <!--
67 Valid values are:
68 NONE (no extra eviction, <time-to-live-seconds> may still apply),
69 LRU (Least Recently Used),
70 LFU (Least Frequently Used).
71 LRU is the default.
72 Regardless of the eviction policy used, <time-to-live-seconds> will
73 still apply.
74 -->
75 <eviction-policy>NONE</eviction-policy>
76
77 <!--
78 Should the cached entries get evicted if the entries are changed
79 (updated or removed).
80 true of false. Default is true.
81 -->
82 <invalidate-on-change>true</invalidate-on-change>
83
84 </near-cache>
85 </map>
86
87 <topic name="*">
88 <global-ordering-enabled>false</global-ordering-enabled>
89 </topic>
90
91 <network>
92 <port auto-increment="true">5701</port>
93 <join>
Yuta HIGUCHIe0436b82014-04-16 17:49:29 -070094 <multicast enabled="false">
95 <multicast-group>224.2.2.3</multicast-group>
96 <multicast-port>54327</multicast-port>
Pavlin Radoslavov1eee2c82013-10-15 02:30:32 -070097 </multicast>
Yuta HIGUCHIe0436b82014-04-16 17:49:29 -070098 <tcp-ip enabled="true">
Yuta HIGUCHIceb21b62014-04-17 15:46:05 -070099 <member>localhost:5701</member>
Yuta HIGUCHIe0436b82014-04-16 17:49:29 -0700100 <!--
101 <member>machine2</member>
102 <member>machine3:5799</member>
103 <member>192.168.1.0-7</member>
104 <member>192.168.1.21</member>
Pavlin Radoslavov1eee2c82013-10-15 02:30:32 -0700105 -->
Yuta HIGUCHIe0436b82014-04-16 17:49:29 -0700106 </tcp-ip>
Pavlin Radoslavov1eee2c82013-10-15 02:30:32 -0700107 <aws enabled="false">
108 </aws>
109 </join>
110 </network>
111
Jonathan Hart0912ec12013-11-14 15:05:49 -0800112 <properties>
113 <property name="hazelcast.logging.type">slf4j</property>
Pavlin Radoslavovcac2f542013-12-11 18:32:39 -0800114 <property name="hazelcast.version.check.enabled">false</property>
Jonathan Hart0912ec12013-11-14 15:05:49 -0800115 </properties>
Pavlin Radoslavov1eee2c82013-10-15 02:30:32 -0700116</hazelcast>