blob: 8ca2e3fb2769b7e69c474dcc46fd28bdb990d239 [file] [log] [blame]
Naoki Shiota4e928512014-04-03 15:49:35 -07001<hazelcast xsi:schemaLocation="http://www.hazelcast.com/schema/config
Yuta HIGUCHI33a04972014-06-03 13:00:15 -07002 http://www.hazelcast.com/schema/config/hazelcast-config-3.2.xsd"
Naoki Shiota4e928512014-04-03 15:49:35 -07003 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
Yuta HIGUCHI85de40d2014-06-12 14:06:41 -070012 <group>
13 <name>__HC_CLUSTER__</name>
14 </group>
15
Yuta HIGUCHI657b5882014-04-26 12:52:22 -070016 <properties>
17 <property name="hazelcast.logging.type">slf4j</property>
18 <property name="hazelcast.version.check.enabled">false</property>
19 </properties>
20
21 <network>
22 <port auto-increment="true">__HC_PORT__</port>
Yuta HIGUCHIcdb5d852014-07-31 10:27:43 -070023<!-- Examples to force using certain interface
24 <interfaces enabled="true">
25 <interface>192.168.200.*</interface>
26 </interfaces>
27-->
Yuta HIGUCHI657b5882014-04-26 12:52:22 -070028 <join>
29__HC_NETWORK__
30 <aws enabled="false">
31 </aws>
32 </join>
33 </network>
Naoki Shiota4e928512014-04-03 15:49:35 -070034
Yuta HIGUCHI8447c362014-05-30 11:32:49 -070035 <serialization>
36 <!-- IdentifiedDataSerializableFactory for HZTable.VersionedValue class -->
37 <data-serializable-factories>
38 <data-serializable-factory factory-id="1">net.onrc.onos.core.datastore.hazelcast.VersionedValueSerializableFactory</data-serializable-factory>
39 </data-serializable-factories>
Yuta HIGUCHI8f182192014-08-02 18:47:42 -070040 <serializers>
41 <serializer type-class="net.onrc.onos.core.util.distributed.sharedlog.internal.LogValue">net.onrc.onos.core.util.distributed.sharedlog.hazelcast.LogValueSerializer</serializer>
42 </serializers>
Yuta HIGUCHI8447c362014-05-30 11:32:49 -070043 </serialization>
44
Naoki Shiota4e928512014-04-03 15:49:35 -070045 <!-- Configuration of maps used as a data store. -->
46 <map name="datastore://*">
47 <!-- must use 'sync' backup to imitate other data store -->
48 <backup-count>3</backup-count>
49 <async-backup-count>0</async-backup-count>
50 <!-- must be false for strong consistency -->
51 <read-backup-data>false</read-backup-data>
52 <!-- near cache must not be used -->
53 </map>
54
Yuta HIGUCHI8f182192014-08-02 18:47:42 -070055 <!-- Configuration of maps used as a log store. -->
56 <map name="logmap://*">
57 <!-- must use 'sync' backup to imitate other data store -->
58 <backup-count>3</backup-count>
59 <async-backup-count>0</async-backup-count>
60 <!-- can be true, since log map value is basically immutable -->
61 <read-backup-data>true</read-backup-data>
62 <!-- near cache can be enabled -->
63 <near-cache>
64 <!-- TODO revisit random params -->
65 <max-size>5000</max-size>
66 <time-to-live-seconds>300</time-to-live-seconds>
67 <eviction-policy>LRU</eviction-policy>
68 </near-cache>
69 </map>
70
71 <!-- Configuration of maps used as a snap shot store. -->
72 <map name="ssmap://*">
73 <!-- must use 'sync' backup to imitate other data store -->
74 <backup-count>3</backup-count>
75 <async-backup-count>0</async-backup-count>
76 <!-- can be true, since snap shot map value is basically immutable -->
77 <read-backup-data>true</read-backup-data>
78 <!-- near cache can be enabled -->
79 <near-cache>
80 <!-- TODO revisit random params -->
81 <max-size>10</max-size>
82 <time-to-live-seconds>300</time-to-live-seconds>
83 <eviction-policy>LRU</eviction-policy>
84 </near-cache>
85 </map>
86
Naoki Shiota4e928512014-04-03 15:49:35 -070087 <map name="*">
88
89 <!--
90 Number of sync-backups. If 1 is set as the backup-count for example,
91 then all entries of the map will be copied to another JVM for
Yuta HIGUCHIb2dc08d2014-06-05 16:55:34 -070092 fail-safety. Valid numbers are 0 (no backup), 1, 2, 3.
Naoki Shiota4e928512014-04-03 15:49:35 -070093 -->
Yuta HIGUCHIb2dc08d2014-06-05 16:55:34 -070094 <backup-count>3</backup-count>
Naoki Shiota4e928512014-04-03 15:49:35 -070095
96 <!--
97 Number of async-backups. If 1 is set as the backup-count for example,
98 then all entries of the map will be copied to another JVM for
99 fail-safety. Valid numbers are 0 (no backup), 1, 2, 3.
100 -->
Yuta HIGUCHIb2dc08d2014-06-05 16:55:34 -0700101 <async-backup-count>0</async-backup-count>
Naoki Shiota4e928512014-04-03 15:49:35 -0700102
103 <!--
104 Can we read the local backup entries? Default value is false for
105 strong consistency. Being able to read backup data will give you
106 greater performance.
107 -->
108 <read-backup-data>true</read-backup-data>
109
110 <near-cache>
111 <!--
112 Maximum size of the near cache. When max size is reached,
113 cache is evicted based on the policy defined.
114 Any integer between 0 and Integer.MAX_VALUE. 0 means
115 Integer.MAX_VALUE. Default is 0.
116 -->
117 <max-size>0</max-size>
118 <!--
119 Maximum number of seconds for each entry to stay in the near cache.
120 Entries that are older than <time-to-live-seconds> will get
121 automatically evicted from the near cache.
122 Any integer between 0 and Integer.MAX_VALUE. 0 means infinite.
123 Default is 0.
124 -->
125 <time-to-live-seconds>0</time-to-live-seconds>
126
127 <!--
128 Maximum number of seconds each entry can stay in the near cache as
129 untouched (not-read).
130 Entries that are not read (touched) more than <max-idle-seconds>
131 value will get removed from the near cache.
132 Any integer between 0 and Integer.MAX_VALUE. 0 means
133 Integer.MAX_VALUE. Default is 0.
134 -->
135 <max-idle-seconds>0</max-idle-seconds>
136
137 <!--
138 Valid values are:
139 NONE (no extra eviction, <time-to-live-seconds> may still apply),
140 LRU (Least Recently Used),
141 LFU (Least Frequently Used).
142 LRU is the default.
143 Regardless of the eviction policy used, <time-to-live-seconds> will
144 still apply.
145 -->
146 <eviction-policy>NONE</eviction-policy>
147
148 <!--
149 Should the cached entries get evicted if the entries are changed
150 (updated or removed).
151 true of false. Default is true.
152 -->
153 <invalidate-on-change>true</invalidate-on-change>
154
155 </near-cache>
156 </map>
157
158 <topic name="*">
159 <global-ordering-enabled>false</global-ordering-enabled>
160 </topic>
Naoki Shiota4e928512014-04-03 15:49:35 -0700161</hazelcast>