Hi,
I used replicatedMap data structure in my stand-alone Java application.
I got one problem about this.
I have 5 hazelcast nodes on seperate machines. (all machines have 4 nodes)
Last week, this machines' connections was too slow.(normally ping time is 7 ms, last week it was about 50 ms )
And, because of this problem, replication was also too slow. It is normal.
But, this replication's slowness affected my stand alone Java application performance. After the map.put() call, I do some another processes and they waited for replication delay.
I think the replication process is done another thread in the background, but likely it is not.
I read the documentation of Hazelcast, it talks about replication delay millis. I set this value to 0, can my problem be based on this value?
If it is set bigger than 0, is the replication done in background?
Thanks.
ReplicatedMapConfig replicatedMapConfig = new ReplicatedMapConfig();
replicatedMapConfig.setName("abcMap");
replicatedMapConfig.setReplicationDelayMillis(0);
config.addReplicatedMapConfig(replicatedMapConfig);
HazelcastInstance hazelcastInstance = Hazelcast.newHazelcastInstance(config);
ReplicatedMap<String, String> hazelcastMap = hazelcastInstance.getReplicatedMap("abcMap");