-
Notifications
You must be signed in to change notification settings - Fork 613
/
10.0.xml
372 lines (366 loc) · 19.8 KB
/
10.0.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
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
<infinispan
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="urn:infinispan:config:10.0 http://www.infinispan.org/schemas/infinispan-config-10.0.xsd
urn:org:jgroups http://www.jgroups.org/schema/jgroups-4.0.xsd"
xmlns="urn:infinispan:config:10.0"
xmlns:ispn="urn:infinispan:config:10.0">
<jgroups transport="org.infinispan.remoting.transport.jgroups.JGroupsTransport">
<!-- Load external JGroups stacks -->
<stack-file name="udp-test" path="stacks/udp.xml"/>
<stack-file name="tcp-test" path="stacks/tcp_mping/tcp1.xml"/>
<!-- Inline definition -->
<stack name="mping">
<TCP bind_port="7800" port_range="30" recv_buf_size="20000000" send_buf_size="640000"
sock_conn_timeout="300" bundler_type="no-bundler"
thread_pool.min_threads="0" thread_pool.max_threads="25" thread_pool.keep_alive_time="5000"
xmlns="urn:org:jgroups"/>
<MPING bind_addr="127.0.0.1" break_on_coord_rsp="true"
mcast_addr="${jgroups.mping.mcast_addr:228.2.4.6}"
mcast_port="${jgroups.mping.mcast_port:43366}"
ip_ttl="${jgroups.udp.ip_ttl:2}"
xmlns="urn:org:jgroups"/>
<MERGE3 xmlns="urn:org:jgroups"/>
<FD_SOCK xmlns="urn:org:jgroups"/>
<FD_ALL timeout="3000"
interval="1000"
timeout_check_interval="1000"
xmlns="urn:org:jgroups"
/>
<VERIFY_SUSPECT timeout="1000" xmlns="urn:org:jgroups"/>
<pbcast.NAKACK2
use_mcast_xmit="false"
xmit_interval="100"
xmit_table_num_rows="50"
xmit_table_msgs_per_row="1024"
xmit_table_max_compaction_time="30000"
xmlns="urn:org:jgroups"/>
<UNICAST3
xmit_interval="100"
xmit_table_num_rows="50"
xmit_table_msgs_per_row="1024"
xmit_table_max_compaction_time="30000"
xmlns="urn:org:jgroups"
/>
<RSVP xmlns="urn:org:jgroups"/>
<pbcast.STABLE stability_delay="200"
desired_avg_gossip="2000"
max_bytes="1M"
xmlns="urn:org:jgroups"
/>
<pbcast.GMS print_local_addr="false"
join_timeout="${jgroups.join_timeout:2000}"
xmlns="urn:org:jgroups"/>
<MFC max_credits="2M" min_threshold="0.40" xmlns="urn:org:jgroups"/>
<FRAG3 xmlns="urn:org:jgroups"/>
</stack>
<!-- Use the "tcp" stack but override some protocol attributes -->
<stack name="mytcp" extends="tcp-test">
<FD_ALL timeout="3500" ispn:stack.combine="COMBINE" xmlns="urn:org:jgroups"/>
</stack>
<!-- Use the "tcp" stack but replace the discovery -->
<stack name="tcpgossip" extends="tcp-test">
<MPING ispn:stack.combine="REMOVE" xmlns="urn:org:jgroups"/>
<TCPGOSSIP initial_hosts="${jgroups.tunnel.gossip_router_hosts:localhost[12001]}" ispn:stack.combine="INSERT_AFTER" ispn:stack.position="TCP" xmlns="urn:org:jgroups"/>
</stack>
<!-- Use the "tcp" stack but replace the discovery -->
<stack name="tcpfdhost" extends="tcp">
<FD_HOST ispn:stack.combine="REPLACE" ispn:stack.position="FD_ALL" xmlns="urn:org:jgroups"/>
</stack>
<!-- Add a relay configuration using a previously declared stack to talk to the remote site -->
<stack name="xsite" extends="udp">
<relay.RELAY2 site="LON" xmlns="urn:org:jgroups"/>
<remote-sites default-stack="tcpgossip">
<remote-site name="NYC"/>
</remote-sites>
</stack>
</jgroups>
<threads>
<thread-factory name="infinispan-factory" group-name="infinispan" thread-name-pattern="%G %i" priority="5"/>
<!-- listener-executor -->
<blocking-bounded-queue-thread-pool name="infinispan-async" thread-factory="infinispan-factory"
core-threads="5" max-threads="5" queue-length="0" keepalive-time="0"/>
<!-- listener-executor -->
<blocking-bounded-queue-thread-pool name="infinispan-listener" thread-factory="infinispan-factory"
core-threads="1" max-threads="1" queue-length="0" keepalive-time="0"/>
<!-- transport.executor -->
<blocking-bounded-queue-thread-pool name="infinispan-transport" thread-factory="infinispan-factory"
core-threads="5" max-threads="10" queue-length="100" keepalive-time="10000"/>
<!-- state-transfer-executor -->
<blocking-bounded-queue-thread-pool name="infinispan-state-transfer" thread-factory="infinispan-factory"
core-threads="1" max-threads="60" queue-length="0" keepalive-time="0"/>
<!-- transport.remote-command-executor, persistence-executor -->
<cached-thread-pool name="infinispan-cached" thread-factory="infinispan-factory" />
<!-- expiration-executor -->
<scheduled-thread-pool name="infinispan-expiration" thread-factory="infinispan-factory" />
</threads>
<cache-container name="maximal" aliases="alias1 alias2" default-cache="local" async-executor="infinispan-async" expiration-executor="infinispan-expiration"
jndi-name="java:global/infinispan/maximal" state-transfer-executor="infinispan-state-transfer" listener-executor="infinispan-listener"
persistence-executor="infinispan-cached" module="org.infinispan" statistics="true" shutdown-hook="DONT_REGISTER" zero-capacity-node="false">
<transport cluster="maximal-cluster" executor="infinispan-transport" remote-command-executor="infinispan-cached" lock-timeout="120000" stack="tcp" node-name="a-node" machine="a" rack="b" site="c"
initial-cluster-size="4" initial-cluster-timeout="30000" />
<serialization marshaller="org.infinispan.marshall.TestObjectStreamMarshaller" version="1.0">
<advanced-externalizer class="org.infinispan.marshall.AdvancedExternalizerTest$IdViaConfigObj$Externalizer" id="9001" />
<advanced-externalizer class="org.infinispan.marshall.AdvancedExternalizerTest$IdViaAnnotationObj$Externalizer" id="9002" />
</serialization>
<jmx domain="my-domain" mbean-server-lookup="org.infinispan.jmx.CustomMBeanServerPropertiesTest$TestLookup" duplicate-domains="true">
<property name="key">value</property>
</jmx>
<global-state>
<persistent-location path="persistentPath" relative-to="jboss.server.temp.dir" />
<shared-persistent-location path="sharedPath" relative-to="jboss.server.temp.dir" />
<temporary-location path="tmpPath" relative-to="jboss.server.temp.dir" />
<overlay-configuration-storage />
</global-state>
<local-cache name="local" start="EAGER" module="org.infinispan" statistics="true">
<encoding>
<key media-type="application/x-java-object"/>
<value media-type="application/x-java-object"/>
</encoding>
<locking acquire-timeout="30000" concurrency-level="2000" isolation="NONE" striping="true"/>
<transaction mode="FULL_XA" stop-timeout="60000" locking="OPTIMISTIC" transaction-manager-lookup="org.infinispan.transaction.lookup.JBossStandaloneJTAManagerLookup" complete-timeout="34000" reaper-interval="35000" auto-commit="true" />
<expiration interval="10000" lifespan="10" max-idle="10"/>
<persistence passivation="false" availability-interval="2000" connection-attempts="5" connection-interval="100">
<file-store path="path" relative-to="jboss.server.temp.dir" shared="false" singleton="false" fetch-state="false" preload="true" purge="false">
<write-behind modification-queue-size="2048" thread-pool-size="1" fail-silently="true"/>
</file-store>
</persistence>
<memory>
<object size="20000"/>
</memory>
</local-cache>
<invalidation-cache name="invalid" mode="SYNC" start="EAGER" statistics="true">
<locking acquire-timeout="30500" concurrency-level="2500" isolation="READ_UNCOMMITTED" striping="true"/>
<transaction mode="BATCH" stop-timeout="60500" locking="OPTIMISTIC"/>
<expiration interval="10500" lifespan="11" max-idle="11"/>
<memory>
<binary size="20500"/>
</memory>
</invalidation-cache>
<replicated-cache name="repl" mode="SYNC" start="EAGER" statistics="true">
<encoding>
<key media-type="application/x-java-object"/>
<value media-type="application/x-java-object"/>
</encoding>
<locking acquire-timeout="31000" concurrency-level="3000" isolation="SERIALIZABLE" striping="true"/>
<transaction mode="BATCH" stop-timeout="61000" locking="PESSIMISTIC"/>
<expiration interval="11000" lifespan="12" max-idle="12"/>
<persistence>
<cluster-loader remote-timeout="35000" preload="false"/>
</persistence>
<memory>
<object size="21000"/>
</memory>
<state-transfer enabled="false" timeout="60000" chunk-size="10000" />
</replicated-cache>
<distributed-cache name="dist" mode="SYNC" l1-lifespan="1200000" owners="4"
remote-timeout="35000" start="EAGER" segments="2" statistics="true"
consistent-hash-factory="org.infinispan.distribution.ch.impl.SyncConsistentHashFactory"
key-partitioner="org.infinispan.distribution.ch.impl.HashFunctionPartitioner">
<backups>
<backup site="NYC" failure-policy="WARN" strategy="SYNC" timeout="12500" enabled="false">
<state-transfer chunk-size="600" timeout="2400000"/>
</backup>
<backup site="SFO" failure-policy="IGNORE" strategy="ASYNC" timeout="13000" enabled="true"/>
<backup site="LON" failure-policy="FAIL" strategy="SYNC" timeout="13500" enabled="true">
<take-offline after-failures="3" min-wait="10000"/>
</backup>
</backups>
<backup-for remote-cache="users" remote-site="LON"/>
<locking acquire-timeout="31500" concurrency-level="3500" isolation="READ_COMMITTED" striping="true"/>
<transaction mode="FULL_XA" stop-timeout="61500" locking="OPTIMISTIC"/>
<expiration interval="11500" lifespan="13" max-idle="13"/>
<memory>
<object size="21500"/>
</memory>
<partition-handling when-split="ALLOW_READS" merge-policy="PREFERRED_NON_NULL"/>
<state-transfer enabled="true" timeout="60500" chunk-size="10500" />
</distributed-cache>
<replicated-cache name="capedwarf-data" mode="SYNC">
<transaction mode="NON_XA"/>
<persistence passivation="false">
<file-store preload="true" purge="false"/>
</persistence>
<memory>
<object size="-1"/>
</memory>
</replicated-cache>
<replicated-cache name="capedwarf-metadata" mode="SYNC">
<transaction mode="NON_XA"/>
<persistence passivation="true">
<store class="org.infinispan.persistence.dummy.DummyInMemoryStore" />
</persistence>
<memory>
<object size="-1"/>
</memory>
</replicated-cache>
<replicated-cache name="capedwarf-memcache" mode="SYNC">
<transaction mode="NON_XA" locking="PESSIMISTIC"/>
<memory>
<object size="-1"/>
</memory>
</replicated-cache>
<distributed-cache name="capedwarf-default" mode="SYNC">
<transaction mode="NON_XA"/>
<persistence passivation="true">
<file-store preload="true" purge="false"/>
</persistence>
<memory>
<object size="-1"/>
</memory>
</distributed-cache>
<distributed-cache name="capedwarf-dist" mode="SYNC">
<transaction mode="NON_XA" locking="PESSIMISTIC"/>
<persistence passivation="true">
<file-store preload="true" purge="false"/>
</persistence>
<memory>
<object size="-1"/>
</memory>
</distributed-cache>
<distributed-cache name="capedwarf-tasks" mode="SYNC">
<transaction mode="NON_XA"/>
<persistence passivation="true">
<file-store preload="true" purge="false"/>
</persistence>
<memory>
<object size="10000"/>
</memory>
</distributed-cache>
<replicated-cache name="HibernateSearch-LuceneIndexesMetadata" mode="SYNC">
<transaction mode="BATCH"/>
<persistence passivation="true">
<file-store preload="true" purge="false"/>
</persistence>
<memory>
<object size="-1"/>
</memory>
</replicated-cache>
<replicated-cache name="HibernateSearch-LuceneIndexesData" mode="SYNC">
<transaction mode="BATCH"/>
<persistence passivation="true">
<file-store preload="true" purge="false"/>
</persistence>
<memory>
<object size="-1"/>
</memory>
</replicated-cache>
<replicated-cache name="HibernateSearch-LuceneIndexesLocking" mode="SYNC">
<transaction mode="BATCH"/>
<memory>
<object size="-1"/>
</memory>
</replicated-cache>
<local-cache name="custom-interceptors" unreliable-return-values="true">
<custom-interceptors>
<interceptor class="org.infinispan.configuration.parsing.UnifiedXmlFileParsingTest$CustomInterceptor1" after="org.infinispan.interceptors.impl.InvocationContextInterceptor"/>
<interceptor class="org.infinispan.configuration.parsing.UnifiedXmlFileParsingTest$CustomInterceptor2" before="org.infinispan.interceptors.impl.InvocationContextInterceptor"/>
<interceptor class="org.infinispan.configuration.parsing.UnifiedXmlFileParsingTest$CustomInterceptor3" index="1"/>
<interceptor class="org.infinispan.configuration.parsing.UnifiedXmlFileParsingTest$CustomInterceptor4" position="LAST">
<property name="foo">bar</property>
</interceptor>
</custom-interceptors>
</local-cache>
<local-cache name="write-skew" deadlock-detection-spin="-1">
<locking isolation="REPEATABLE_READ" write-skew="true"/>
<transaction locking="OPTIMISTIC"/>
<versioning scheme="SIMPLE"/>
</local-cache>
<local-cache name="compatibility" deadlock-detection-spin="200">
<compatibility marshaller="org.infinispan.commons.marshall.jboss.GenericJBossMarshaller" />
</local-cache>
<local-cache name="custom-container">
<data-container class="org.infinispan.configuration.QueryableDataContainer"
key-equivalence="org.infinispan.commons.equivalence.ByteArrayEquivalence"
value-equivalence="org.infinispan.commons.equivalence.ByteArrayEquivalence">
<property name="foo">bar</property>
</data-container>
</local-cache>
<local-cache name="simple-cache" simple-cache="true">
<transaction mode="NONE"/>
<persistence>
</persistence>
</local-cache>
<local-cache name="off-heap-memory">
<memory>
<off-heap size="10000000" eviction="MEMORY" address-count="4"/>
</memory>
</local-cache>
<local-cache name="binary-memory">
<memory>
<binary size="1"/>
</memory>
</local-cache>
<local-cache name="object-memory">
<memory>
<object/>
</memory>
</local-cache>
<!-- template configurations -->
<local-cache-configuration name="local-template" start="EAGER" module="org.infinispan" statistics="true">
<locking acquire-timeout="30000" concurrency-level="2000" isolation="NONE" striping="true"/>
<transaction mode="FULL_XA" stop-timeout="60000" locking="OPTIMISTIC" transaction-manager-lookup="org.infinispan.transaction.lookup.JBossStandaloneJTAManagerLookup" complete-timeout="34000" reaper-interval="35000" auto-commit="true" />
<expiration interval="10000" lifespan="10" max-idle="10"/>
<persistence passivation="false">
<file-store path="path" relative-to="jboss.server.temp.dir" shared="false" singleton="false" fetch-state="false" preload="true" purge="false">
<write-behind modification-queue-size="2048" thread-pool-size="1" />
</file-store>
</persistence>
<memory>
<object size="20000"/>
</memory>
</local-cache-configuration>
<local-cache name="local-instance" configuration="local-template">
<expiration interval="11000"/>
</local-cache>
<invalidation-cache-configuration name="invalidation-template" mode="SYNC" start="LAZY" statistics="true">
<locking acquire-timeout="30500" concurrency-level="2500" isolation="READ_UNCOMMITTED" striping="true"/>
<transaction mode="BATCH" stop-timeout="60500" locking="OPTIMISTIC"/>
<expiration interval="10500" lifespan="11" max-idle="11"/>
<memory>
<object size="20500"/>
</memory>
</invalidation-cache-configuration>
<invalidation-cache name="invalidation-instance" configuration="invalidation-template" />
<replicated-cache-configuration name="repl-template" mode="SYNC" start="EAGER" statistics="true"
segments="200" consistent-hash-factory="org.infinispan.distribution.ch.impl.SyncConsistentHashFactory"
key-partitioner="org.infinispan.distribution.ch.impl.HashFunctionPartitioner">
<locking acquire-timeout="31000" concurrency-level="3000" isolation="SERIALIZABLE" striping="true"/>
<transaction mode="BATCH" stop-timeout="61000" locking="PESSIMISTIC"/>
<expiration interval="11000" lifespan="12" max-idle="12"/>
<persistence>
<cluster-loader remote-timeout="35000" preload="true"/>
</persistence>
<memory>
<object size="21000"/>
</memory>
<state-transfer enabled="false" timeout="60000" chunk-size="10000" />
</replicated-cache-configuration>
<replicated-cache name="repl-instance" configuration="repl-template">
<locking acquire-timeout="32000"/>
</replicated-cache>
<distributed-cache-configuration name="dist-template" mode="SYNC" l1-lifespan="1200000" owners="4"
remote-timeout="35000" start="EAGER" segments="2" statistics="true"
consistent-hash-factory="org.infinispan.distribution.ch.impl.SyncConsistentHashFactory"
key-partitioner="org.infinispan.distribution.ch.impl.HashFunctionPartitioner">
<backups>
<backup site="NYC" failure-policy="WARN" strategy="SYNC" timeout="12500" enabled="false">
<state-transfer chunk-size="600" timeout="2400000"/>
</backup>
<backup site="SFO" failure-policy="IGNORE" strategy="ASYNC" timeout="13000" enabled="true"/>
<backup site="LON" failure-policy="FAIL" strategy="SYNC" timeout="13500" enabled="true">
<take-offline after-failures="3" min-wait="10000"/>
</backup>
</backups>
<backup-for remote-cache="users" remote-site="LON"/>
<locking acquire-timeout="31500" concurrency-level="3500" isolation="READ_COMMITTED" striping="true"/>
<transaction mode="FULL_XA" stop-timeout="61500" locking="OPTIMISTIC"/>
<expiration interval="11500" lifespan="13" max-idle="13"/>
<memory>
<object size="21500" strategy="REMOVE"/>
</memory>
<partition-handling when-split="DENY_READ_WRITES" merge-policy="PREFERRED_ALWAYS"/>
<state-transfer enabled="true" timeout="60500" chunk-size="10500" />
</distributed-cache-configuration>
<distributed-cache name="dist-instance" configuration="dist-template" />
</cache-container>
</infinispan>