Hazelcast 5.5.0 - Frequent Member Leaves, Migration Failures, SplitBrainProtectionException, Partition Loss and DistributedObjectDestroyOperation Timeout in a 100+ Member Cluster
Environment We are running Hazelcast Community 5.5.0 in a production environment. Environment Details Hazelcast Version: 5.5.0 Java: JDK 17 OS: RHEL Linux Cluster Size: 100+ members Backup Count: 1 Split Brain Protection: Enabled Tcp-ip: enabled multi-cast: false
Problem Description
We are experiencing frequent cluster instability where random members are removed from the cluster due to heartbeat timeout. One member leaves, Hazelcast starts partition migration, but before migration completes another member leaves. Eventually the cluster enters continuous migration/recovery mode and several operations start timing out. Finally, some partitions are reported as completely lost.
Below are the exceptions seen in the logs:
DistributedObjectDestroyOperation Timeout java.util.concurrent.TimeoutException OperationTimeoutException PartitionStateVersionMismatchException SplitBrainProtectionException IOException
Below is our configuration:
<properties>
<property name="hazelcast.logging.type">slf4j</property>
<property name="hazelcast.backpressure.enabled">false</property>
<property name="hazelcast.version.check.enabled">false</property>
<property name="hazelcast.prefer.ipv4.stack">true</property>
<property name="hazelcast.discovery.enabled">false</property>
<property name="hazelcast.connection.monitor.interval">500</property>
<property name="hazelcast.connection.monitor.max.faults">5</property>
<property name="hazelcast.heartbeat.failuredetector.type">phi-accrual</property>
<property name="hazelcast.heartbeat.interval.seconds">5</property>
<property name="hazelcast.max.no.heartbeat.seconds">180</property>
<property name="hazelcast.heartbeat.phiaccrual.failuredetector.threshold">10</property>
<property name="hazelcast.heartbeat.phiaccrual.failuredetector.sample.size">200</property>
<property name="hazelcast.heartbeat.phiaccrual.failuredetector.min.std.dev.millis">100</property>
<property name="hazelcast.jmx">true</property>
<property name="hazelcast.max.join.merge.target.seconds">30</property>
<property name="hazelcast.max.wait.seconds.before.join">30</property>
<property name="hazelcast.operation.call.timeout.millis">300000</property>
<property name="hazelcast.slow.operation.detector.enabled">true</property>
<property name="hazelcast.slow.operation.detector.threshold.millis">10000</property>
<property name="hazelcast.slow.operation.detector.log.purge.interval.seconds">30</property>
</properties>Questions
- Is this behavior a known issue in Hazelcast 5.5.0?
- How can we overcome the problem?
- Would you recommend changing?
- hazelcast.partition.max.parallel.migrations from 10 to 5 for a cluster of approximately 100 members?
- Could the following warning partitionId=79 is completely lost occur simply because both the primary and backup owners left before migration completed?
- Is there any recommended configuration for clusters with approximately 100 embedded members to reduce migration pressure and improve stability?
Source: hazelcast/hazelcast