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