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