-
Notifications
You must be signed in to change notification settings - Fork 4
/
hazelcast-proven-data.xml
185 lines (154 loc) · 7.3 KB
/
hazelcast-proven-data.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
<?xml version="1.0" encoding="UTF-8"?>
<hazelcast xsi:schemaLocation="http://www.hazelcast.com/schema/config hazelcast-config-3.8.xsd" xmlns="http://www.hazelcast.com/schema/config" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<management-center enabled="true">http://localhost:9080/mancenter
</management-center>
<!-- Property settings -->
<properties>
<property name="hazelcast.logging.type">slf4j</property>
</properties>
<network>
<port auto-increment="true" port-count="10">${proven.hazelcast.member.port}</port>
<outbound-ports>
<!-- Allowed port range when connecting to other nodes. 0 or * means use
system provided port. -->
<ports>0</ports>
</outbound-ports>
<join>
<multicast enabled="false"/>
<tcp-ip enabled="true">
<members>${proven.hazelcast.members}</members>
</tcp-ip>
<aws enabled="false"/>
</join>
</network>
<!-- PER_MEMBER by default (i.e. random selection) -->
<partition-group enabled="false"/>
<map name="gov.pnnl.proven.message.*">
<time-to-live-seconds>0</time-to-live-seconds>
<max-size policy="PER_NODE">0</max-size>
</map>
<serialization>
<data-serializable-factories>
<data-serializable-factory factory-id="1">
gov.pnnl.proven.message.ProvenMessageIDSFactory
</data-serializable-factory>
</data-serializable-factories>
</serialization>
<!-- ##################################################################################### -->
<!-- DEFAULT HAZELCAST CONFIGURAIONS -->
<executor-service name="default">
<pool-size>16</pool-size>
<!--Queue capacity. 0 means Integer.MAX_VALUE. -->
<queue-capacity>0</queue-capacity>
</executor-service>
<map name="default">
<!-- Data type that will be used for storing recordMap. Possible values:
BINARY (default): keys and values will be stored as binary data OBJECT :
values will be stored in their object forms NATIVE : values will be stored
in non-heap region of JVM -->
<in-memory-format>BINARY</in-memory-format>
<!-- Number of backups. If 1 is set as the backup-count for example, then
all entries of the map will be copied to another JVM for fail-safety. 0 means
no backup. -->
<backup-count>1</backup-count>
<!-- Number of async backups. 0 means no backup. -->
<async-backup-count>0</async-backup-count>
<!-- Maximum number of seconds for each entry to stay in the map. Entries
that are older than <time-to-live-seconds> and not updated for <time-to-live-seconds>
will get automatically evicted from the map. Any integer between 0 and Integer.MAX_VALUE.
0 means infinite. Default is 0. -->
<time-to-live-seconds>0</time-to-live-seconds>
<!-- Maximum number of seconds for each entry to stay idle in the map.
Entries that are idle(not touched) for more than <max-idle-seconds> will
get automatically evicted from the map. Entry is touched if get, put or containsKey
is called. Any integer between 0 and Integer.MAX_VALUE. 0 means infinite.
Default is 0. -->
<max-idle-seconds>0</max-idle-seconds>
<!-- Valid values are: NONE (no eviction), LRU (Least Recently Used), LFU
(Least Frequently Used). NONE is the default. -->
<eviction-policy>NONE</eviction-policy>
<!-- Maximum size of the map. When max size is reached, map is evicted
based on the policy defined. Any integer between 0 and Integer.MAX_VALUE.
0 means Integer.MAX_VALUE. Default is 0. -->
<max-size policy="PER_NODE">0</max-size>
<!-- `eviction-percentage` property is deprecated and will be ignored when
it is set. As of version 3.7, eviction mechanism changed. It uses a probabilistic
algorithm based on sampling. Please see documentation for further details -->
<eviction-percentage>25</eviction-percentage>
<!-- `min-eviction-check-millis` property is deprecated and will be ignored
when it is set. As of version 3.7, eviction mechanism changed. It uses a
probabilistic algorithm based on sampling. Please see documentation for further
details -->
<min-eviction-check-millis>100</min-eviction-check-millis>
<!-- While recovering from split-brain (network partitioning), map entries
in the small cluster will merge into the bigger cluster based on the policy
set here. When an entry merge into the cluster, there might an existing entry
with the same key already. Values of these entries might be different for
that same key. Which value should be set for the key? Conflict is resolved
by the policy set here. Default policy is PutIfAbsentMapMergePolicy There
are built-in merge policies such as com.hazelcast.map.merge.PassThroughMergePolicy;
entry will be overwritten if merging entry exists for the key. com.hazelcast.map.merge.PutIfAbsentMapMergePolicy
; entry will be added if the merging entry doesn't exist in the cluster.
com.hazelcast.map.merge.HigherHitsMapMergePolicy ; entry with the higher
hits wins. com.hazelcast.map.merge.LatestUpdateMapMergePolicy ; entry with
the latest update wins. -->
<merge-policy>com.hazelcast.map.merge.PutIfAbsentMapMergePolicy</merge-policy>
<!-- Control caching of de-serialized values. Caching makes query evaluation
faster, but it cost memory. Possible Values: NEVER: Never cache deserialized
object INDEX-ONLY: Caches values only when they are inserted into an index.
ALWAYS: Always cache deserialized values. -->
<cache-deserialized-values>INDEX-ONLY</cache-deserialized-values>
</map>
<queue name="default">
<!-- Maximum size of the queue. When a JVM's local queue size reaches the
maximum, all put/offer operations will get blocked until the queue size of
the JVM goes down below the maximum. Any integer between 0 and Integer.MAX_VALUE.
0 means Integer.MAX_VALUE. Default is 0. -->
<max-size>0</max-size>
<!-- Number of backups. If 1 is set as the backup-count for example, then
all entries of the map will be copied to another JVM for fail-safety. 0 means
no backup. -->
<backup-count>1</backup-count>
<!-- Number of async backups. 0 means no backup. -->
<async-backup-count>0</async-backup-count>
<empty-queue-ttl>-1</empty-queue-ttl>
</queue>
<multimap name="default">
<backup-count>1</backup-count>
<value-collection-type>SET</value-collection-type>
</multimap>
<list name="default">
<backup-count>1</backup-count>
</list>
<set name="default">
<backup-count>1</backup-count>
</set>
<jobtracker name="default">
<max-thread-size>0</max-thread-size>
<!-- Queue size 0 means number of partitions * 2 -->
<queue-size>0</queue-size>
<retry-count>0</retry-count>
<chunk-size>1000</chunk-size>
<communicate-stats>true</communicate-stats>
<topology-changed-strategy>CANCEL_RUNNING_OPERATION</topology-changed-strategy>
</jobtracker>
<semaphore name="default">
<initial-permits>0</initial-permits>
<backup-count>1</backup-count>
<async-backup-count>0</async-backup-count>
</semaphore>
<reliable-topic name="default">
<read-batch-size>10</read-batch-size>
<topic-overload-policy>BLOCK</topic-overload-policy>
<statistics-enabled>true</statistics-enabled>
</reliable-topic>
<ringbuffer name="default">
<capacity>10000</capacity>
<backup-count>1</backup-count>
<async-backup-count>0</async-backup-count>
<time-to-live-seconds>0</time-to-live-seconds>
<in-memory-format>BINARY</in-memory-format>
</ringbuffer>
<services enable-defaults="true"/>
<lite-member enabled="false"/>
</hazelcast>