blob: d06addc7fc9514c0fa445a89557381dd8011d2cb [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>
23 <join>
24__HC_NETWORK__
25 <aws enabled="false">
26 </aws>
27 </join>
28 </network>
Naoki Shiota4e928512014-04-03 15:49:35 -070029
Yuta HIGUCHI8447c362014-05-30 11:32:49 -070030 <serialization>
31 <!-- IdentifiedDataSerializableFactory for HZTable.VersionedValue class -->
32 <data-serializable-factories>
33 <data-serializable-factory factory-id="1">net.onrc.onos.core.datastore.hazelcast.VersionedValueSerializableFactory</data-serializable-factory>
34 </data-serializable-factories>
Yuta HIGUCHI8f182192014-08-02 18:47:42 -070035 <serializers>
36 <serializer type-class="net.onrc.onos.core.util.distributed.sharedlog.internal.LogValue">net.onrc.onos.core.util.distributed.sharedlog.hazelcast.LogValueSerializer</serializer>
37 </serializers>
Yuta HIGUCHI8447c362014-05-30 11:32:49 -070038 </serialization>
39
Naoki Shiota4e928512014-04-03 15:49:35 -070040 <!-- Configuration of maps used as a data store. -->
41 <map name="datastore://*">
42 <!-- must use 'sync' backup to imitate other data store -->
43 <backup-count>3</backup-count>
44 <async-backup-count>0</async-backup-count>
45 <!-- must be false for strong consistency -->
46 <read-backup-data>false</read-backup-data>
47 <!-- near cache must not be used -->
48 </map>
49
Yuta HIGUCHI8f182192014-08-02 18:47:42 -070050 <!-- Configuration of maps used as a log store. -->
51 <map name="logmap://*">
52 <!-- must use 'sync' backup to imitate other data store -->
53 <backup-count>3</backup-count>
54 <async-backup-count>0</async-backup-count>
55 <!-- can be true, since log map value is basically immutable -->
56 <read-backup-data>true</read-backup-data>
57 <!-- near cache can be enabled -->
58 <near-cache>
59 <!-- TODO revisit random params -->
60 <max-size>5000</max-size>
61 <time-to-live-seconds>300</time-to-live-seconds>
62 <eviction-policy>LRU</eviction-policy>
63 </near-cache>
64 </map>
65
66 <!-- Configuration of maps used as a snap shot store. -->
67 <map name="ssmap://*">
68 <!-- must use 'sync' backup to imitate other data store -->
69 <backup-count>3</backup-count>
70 <async-backup-count>0</async-backup-count>
71 <!-- can be true, since snap shot map value is basically immutable -->
72 <read-backup-data>true</read-backup-data>
73 <!-- near cache can be enabled -->
74 <near-cache>
75 <!-- TODO revisit random params -->
76 <max-size>10</max-size>
77 <time-to-live-seconds>300</time-to-live-seconds>
78 <eviction-policy>LRU</eviction-policy>
79 </near-cache>
80 </map>
81
Naoki Shiota4e928512014-04-03 15:49:35 -070082 <map name="*">
83
84 <!--
85 Number of sync-backups. If 1 is set as the backup-count for example,
86 then all entries of the map will be copied to another JVM for
Yuta HIGUCHIb2dc08d2014-06-05 16:55:34 -070087 fail-safety. Valid numbers are 0 (no backup), 1, 2, 3.
Naoki Shiota4e928512014-04-03 15:49:35 -070088 -->
Yuta HIGUCHIb2dc08d2014-06-05 16:55:34 -070089 <backup-count>3</backup-count>
Naoki Shiota4e928512014-04-03 15:49:35 -070090
91 <!--
92 Number of async-backups. If 1 is set as the backup-count for example,
93 then all entries of the map will be copied to another JVM for
94 fail-safety. Valid numbers are 0 (no backup), 1, 2, 3.
95 -->
Yuta HIGUCHIb2dc08d2014-06-05 16:55:34 -070096 <async-backup-count>0</async-backup-count>
Naoki Shiota4e928512014-04-03 15:49:35 -070097
98 <!--
99 Can we read the local backup entries? Default value is false for
100 strong consistency. Being able to read backup data will give you
101 greater performance.
102 -->
103 <read-backup-data>true</read-backup-data>
104
105 <near-cache>
106 <!--
107 Maximum size of the near cache. When max size is reached,
108 cache is evicted based on the policy defined.
109 Any integer between 0 and Integer.MAX_VALUE. 0 means
110 Integer.MAX_VALUE. Default is 0.
111 -->
112 <max-size>0</max-size>
113 <!--
114 Maximum number of seconds for each entry to stay in the near cache.
115 Entries that are older than <time-to-live-seconds> will get
116 automatically evicted from the near cache.
117 Any integer between 0 and Integer.MAX_VALUE. 0 means infinite.
118 Default is 0.
119 -->
120 <time-to-live-seconds>0</time-to-live-seconds>
121
122 <!--
123 Maximum number of seconds each entry can stay in the near cache as
124 untouched (not-read).
125 Entries that are not read (touched) more than <max-idle-seconds>
126 value will get removed from the near cache.
127 Any integer between 0 and Integer.MAX_VALUE. 0 means
128 Integer.MAX_VALUE. Default is 0.
129 -->
130 <max-idle-seconds>0</max-idle-seconds>
131
132 <!--
133 Valid values are:
134 NONE (no extra eviction, <time-to-live-seconds> may still apply),
135 LRU (Least Recently Used),
136 LFU (Least Frequently Used).
137 LRU is the default.
138 Regardless of the eviction policy used, <time-to-live-seconds> will
139 still apply.
140 -->
141 <eviction-policy>NONE</eviction-policy>
142
143 <!--
144 Should the cached entries get evicted if the entries are changed
145 (updated or removed).
146 true of false. Default is true.
147 -->
148 <invalidate-on-change>true</invalidate-on-change>
149
150 </near-cache>
151 </map>
152
153 <topic name="*">
154 <global-ordering-enabled>false</global-ordering-enabled>
155 </topic>
Naoki Shiota4e928512014-04-03 15:49:35 -0700156</hazelcast>