After a replication event is sent to the target cluster, the source member waits for an acknowledgement of the delivery of the event to the target.
If the confirmation is not received inside a timeout duration window, the event is resent to the target cluster. Default value of this duration is
You can change this duration depending on your network latency for each target cluster by modifying related
Below is an example of declarative configuration:
<hazelcast> ... <wan-replication name="my-wan-cluster"> <wan-publisher group-name="london"> <properties> <property name="response.timeout.millis">5000</property> </properties> </wan-publisher> </wan-replication> ... </hazelcast>
And, the following is the equivalent programmatic configuration:
WanReplicationConfig wanConfig = config.getWanReplicationConfig("my-wan-cluster"); WanPublisherConfig publisherConfig = new WanPublisherConfig(); Map<String, Comparable> props = publisherConfig.getProperties(); props.put("response.timeout.millis", 5000); wanConfig.addWanPublisherConfig(publisherConfig);