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