blob: 6e511ef1f1ddcfc09440ed333d7d8064d8a5cad9 [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>
35 </serialization>
36
Naoki Shiota4e928512014-04-03 15:49:35 -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
47 <map name="*">
48
49 <!--
50 Number of sync-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
Yuta HIGUCHIb2dc08d2014-06-05 16:55:34 -070052 fail-safety. Valid numbers are 0 (no backup), 1, 2, 3.
Naoki Shiota4e928512014-04-03 15:49:35 -070053 -->
Yuta HIGUCHIb2dc08d2014-06-05 16:55:34 -070054 <backup-count>3</backup-count>
Naoki Shiota4e928512014-04-03 15:49:35 -070055
56 <!--
57 Number of async-backups. If 1 is set as the backup-count for example,
58 then all entries of the map will be copied to another JVM for
59 fail-safety. Valid numbers are 0 (no backup), 1, 2, 3.
60 -->
Yuta HIGUCHIb2dc08d2014-06-05 16:55:34 -070061 <async-backup-count>0</async-backup-count>
Naoki Shiota4e928512014-04-03 15:49:35 -070062
63 <!--
64 Can we read the local backup entries? Default value is false for
65 strong consistency. Being able to read backup data will give you
66 greater performance.
67 -->
68 <read-backup-data>true</read-backup-data>
69
70 <near-cache>
71 <!--
72 Maximum size of the near cache. When max size is reached,
73 cache is evicted based on the policy defined.
74 Any integer between 0 and Integer.MAX_VALUE. 0 means
75 Integer.MAX_VALUE. Default is 0.
76 -->
77 <max-size>0</max-size>
78 <!--
79 Maximum number of seconds for each entry to stay in the near cache.
80 Entries that are older than <time-to-live-seconds> will get
81 automatically evicted from the near cache.
82 Any integer between 0 and Integer.MAX_VALUE. 0 means infinite.
83 Default is 0.
84 -->
85 <time-to-live-seconds>0</time-to-live-seconds>
86
87 <!--
88 Maximum number of seconds each entry can stay in the near cache as
89 untouched (not-read).
90 Entries that are not read (touched) more than <max-idle-seconds>
91 value will get removed from the near cache.
92 Any integer between 0 and Integer.MAX_VALUE. 0 means
93 Integer.MAX_VALUE. Default is 0.
94 -->
95 <max-idle-seconds>0</max-idle-seconds>
96
97 <!--
98 Valid values are:
99 NONE (no extra eviction, <time-to-live-seconds> may still apply),
100 LRU (Least Recently Used),
101 LFU (Least Frequently Used).
102 LRU is the default.
103 Regardless of the eviction policy used, <time-to-live-seconds> will
104 still apply.
105 -->
106 <eviction-policy>NONE</eviction-policy>
107
108 <!--
109 Should the cached entries get evicted if the entries are changed
110 (updated or removed).
111 true of false. Default is true.
112 -->
113 <invalidate-on-change>true</invalidate-on-change>
114
115 </near-cache>
116 </map>
117
118 <topic name="*">
119 <global-ordering-enabled>false</global-ordering-enabled>
120 </topic>
Naoki Shiota4e928512014-04-03 15:49:35 -0700121</hazelcast>