blob: b61fc9f2be9471e8579214bf09f7c34dea08425e [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
Yuta HIGUCHI8447c362014-05-30 11:32:49 -070023 <serialization>
24 <!-- IdentifiedDataSerializableFactory for HZTable.VersionedValue class -->
25 <data-serializable-factories>
26 <data-serializable-factory factory-id="1">net.onrc.onos.core.datastore.hazelcast.VersionedValueSerializableFactory</data-serializable-factory>
27 </data-serializable-factories>
28 </serialization>
29
Yuta HIGUCHI3ebc9482014-05-08 16:28:28 -070030 <!-- Configuration of maps used as a data store. -->
31 <map name="datastore://*">
32 <!-- must use 'sync' backup to imitate other data store -->
33 <backup-count>3</backup-count>
34 <async-backup-count>0</async-backup-count>
35 <!-- must be false for strong consistency -->
36 <read-backup-data>false</read-backup-data>
37 <!-- near cache must not be used -->
38 </map>
39
40 <map name="*">
41
42 <!--
43 Number of sync-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 ail-safety. Valid numbers are 0 (no backup), 1, 2, 3.
46 -->
47 <backup-count>0</backup-count>
48
49 <!--
50 Number of async-backups. If 1 is set as the backup-count for example,
51 then all entries of the map will be copied to another JVM for
52 fail-safety. Valid numbers are 0 (no backup), 1, 2, 3.
53 -->
54 <async-backup-count>3</async-backup-count>
55
56 <!--
57 Can we read the local backup entries? Default value is false for
58 strong consistency. Being able to read backup data will give you
59 greater performance.
60 -->
61 <read-backup-data>true</read-backup-data>
62
63 <near-cache>
64 <!--
65 Maximum size of the near cache. When max size is reached,
66 cache is evicted based on the policy defined.
67 Any integer between 0 and Integer.MAX_VALUE. 0 means
68 Integer.MAX_VALUE. Default is 0.
69 -->
70 <max-size>0</max-size>
71 <!--
72 Maximum number of seconds for each entry to stay in the near cache.
73 Entries that are older than <time-to-live-seconds> will get
74 automatically evicted from the near cache.
75 Any integer between 0 and Integer.MAX_VALUE. 0 means infinite.
76 Default is 0.
77 -->
78 <time-to-live-seconds>0</time-to-live-seconds>
79
80 <!--
81 Maximum number of seconds each entry can stay in the near cache as
82 untouched (not-read).
83 Entries that are not read (touched) more than <max-idle-seconds>
84 value will get removed from the near cache.
85 Any integer between 0 and Integer.MAX_VALUE. 0 means
86 Integer.MAX_VALUE. Default is 0.
87 -->
88 <max-idle-seconds>0</max-idle-seconds>
89
90 <!--
91 Valid values are:
92 NONE (no extra eviction, <time-to-live-seconds> may still apply),
93 LRU (Least Recently Used),
94 LFU (Least Frequently Used).
95 LRU is the default.
96 Regardless of the eviction policy used, <time-to-live-seconds> will
97 still apply.
98 -->
99 <eviction-policy>NONE</eviction-policy>
100
101 <!--
102 Should the cached entries get evicted if the entries are changed
103 (updated or removed).
104 true of false. Default is true.
105 -->
106 <invalidate-on-change>true</invalidate-on-change>
107
108 </near-cache>
109 </map>
110
111 <topic name="*">
112 <global-ordering-enabled>false</global-ordering-enabled>
113 </topic>
114</hazelcast>