6.6.3. Replication Queue Usage
When using the replication queue, do one of the following:
- Disable asynchronous marshalling; or
- Set the
max-threads
count value to1
for thetransport executor
. Thetransport executor
is defined instandalone.xml
as follows:<transport executor="infinispan-transport"/>
To implement either of these solutions, the replication queue must be in use in asynchronous mode. Asynchronous mode can be set, along with the queue timeout (
queue-flush-interval
, value is in milliseconds) and queue size (queue-size
) as follows:
<replicated-cache name="asyncCache" start="EAGER" mode="ASYNC" batching="false" indexing="NONE" queue-size="1000" queue-flush-interval="500"> ... </replicated-cache>
The replication queue allows requests to return to the client faster, therefore using the replication queue together with asynchronous marshalling does not present any significant advantages.