orientdb
orientdb copied to clipboard
Cluster is not stable, nodes keep leaving and rejoining in distributed environment
OrientDB Version: 2.2.28
Java Version: 1.8.0_151
OS: Centos 7
ENV: AWS EC2
Expected behavior
Once the cluster is created node should not leave the cluster until the node is down. The cluster should be stable.
Actual behavior
We have a huge problem of nodes leaving and rejoining the cluster even tho the nodes has stable network and don't go down in distributed environment which causes replication issues all times.
Hazel cast config
<?xml version="1.0" encoding="UTF-8"?>
<!-- ~ Copyright (c) 2008-2012, Hazel Bilisim Ltd. All Rights Reserved. ~
~ Licensed under the Apache License, Version 2.0 (the "License"); ~ you may
not use this file except in compliance with the License. ~ You may obtain
a copy of the License at ~ ~ http://www.apache.org/licenses/LICENSE-2.0 ~
~ Unless required by applicable law or agreed to in writing, software ~ distributed
under the License is distributed on an "AS IS" BASIS, ~ WITHOUT WARRANTIES
OR CONDITIONS OF ANY KIND, either express or implied. ~ See the License for
the specific language governing permissions and ~ limitations under the License. -->
<hazelcast
xsi:schemaLocation="http://www.hazelcast.com/schema/config hazelcast-config-3.3.xsd"
xmlns="http://www.hazelcast.com/schema/config" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<group>
<name>username</name>
<password>pass</password>
</group>
<properties>
<property name="hazelcast.local.localAddress">*.*.*.*</property>
<property name="hazelcast.prefer.ipv4.stack">true</property>
<property name="hazelcast.phone.home.enabled">false</property>
<property name="hazelcast.mancenter.enabled">false</property>
<property name="hazelcast.memcache.enabled">false</property>
<property name="hazelcast.rest.enabled">false</property>
<property name="hazelcast.wait.seconds.before.join">5</property>
<property name="hazelcast.operation.thread.count">1</property>
<property name="hazelcast.operation.generic.thread.count">1</property>
<property name="hazelcast.client.event.thread.count">1</property>
<property name="hazelcast.event.thread.count">1</property>
<property name="hazelcast.heartbeat.interval.seconds">5</property>
<property name="hazelcast.max.no.heartbeat.seconds">30</property>
<property name="hazelcast.icmp.enabled">true</property>
<property name="hazelcast.icmp.timeout">5000</property>
<property name="hazelcast.icmp.ttl">3</property>
<property name="hazelcast.merge.next.run.delay.seconds">15</property>
</properties>
<network>
<public-address>>*.*.*.*</public-address>
<port auto-increment="true">2434</port>
<join>
<multicast enabled="false">
<multicast-group>235.1.1.1</multicast-group>
<multicast-port>2434</multicast-port>
</multicast>
<tcp-ip enabled="true">
<member>*.*.*.*</member>
<member>*.*.*.*</member>
<member>*.*.*.*</member>
<member>*.*.*.*</member>
<member>*.*.*.*</member>
<member>*.*.*.*</member>
</tcp-ip>
</join>
<interfaces enabled="true">
<interface>*.*.*.*</interface>
</interfaces>
</network>
<executor-service>
<pool-size>16</pool-size>
</executor-service>
</hazelcast>
Distributed config
{
"autoDeploy": true,
"executionMode": "asynchronous",
"readQuorum": 1,
"writeQuorum": "majority",
"readYourWrites": true,
"newNodeStrategy": "dynamic",
"servers": {
"*": "master"
},
"clusters": {
"internal": {
},
"*": {
"servers": ["<NEW_NODE>"]
}
}
}
We have 6 six members in the cluster right now which will increase to 13 in next 6 months