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