blob: 77db87ce0523aacd2e79322090e31bf8a5f60c04 [file] [log] [blame]
Naoki Shiota4e928512014-04-03 15:49:35 -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 <!-- 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
16 <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>
94__HC_NETWORK__
95 <aws enabled="false">
96 </aws>
97 </join>
98 </network>
99
100 <properties>
101 <property name="hazelcast.logging.type">slf4j</property>
102 <property name="hazelcast.version.check.enabled">false</property>
103 </properties>
104</hazelcast>