You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by boris_snp <bo...@spglobal.com> on 2017/10/04 10:29:35 UTC
Re: 2 broker clusetr, both brokers are live
Mike,
I have established network pinger, logging GC's, do not see any network
failures nor prolonged full GC's (4 - 6 seconds). This is what i see in the
logs:
master:
19:49:56,364 WARN [org.apache.activemq.artemis.core.client] AMQ212037:
Connection failure has been detected: AMQ119014: Did not receive data from
/10.202.147.99:57290 within the 120,000ms connection TTL. The connection
will now be closed.
19:49:56,366 WARN [org.apache.activemq.artemis.core.server] AMQ222092:
Connection to the backup node failed, removing replication now
slave:
19:50:49,380 WARN [org.apache.activemq.artemis.core.client] AMQ212037:
Connection failure has been detected: AMQ119011: Did not receive data from
server for
org.apache.activemq.artemis.core.remoting.impl.netty.NettyConnection@6da143b4[local=
/10.202.147.99:57290, remote=nj09mhf0681/10.202.147.99:41410]
[code=CONNECTION_TIMEDOUT]
19:50:50,456 INFO [org.apache.activemq.artemis.core.server] AMQ221037:
ActiveMQServerImpl::serverUUID=7ffa29a0-7c48-11e7-9784-e83935127b09 to
become 'live'
19:51:08,837 INFO [org.apache.activemq.artemis.core.server] AMQ221007:
Server is now live
19:51:13,444 WARN [org.apache.activemq.artemis.core.client] AMQ212034:
There are more than one servers on the network broadcasting the same node
id.
master:
19:51:13,449 WARN [org.apache.activemq.artemis.core.client] AMQ212034:
There are more than one servers on the network broadcasting the same node
id.
How can I avoid this? Is there a way to automatically recover from this
state?
Will appreciate any help,
Boris
--
Sent from: http://activemq.2283324.n4.nabble.com/ActiveMQ-User-f2341805.html
Re: 2 broker clusetr, both brokers are live
Posted by Justin Bertram <jb...@apache.org>.
If you use a single live/backup pair with replication then you're setting
yourself up for split-brain problems. All it takes is losing the connection
between the live and backup. Increase the size of your cluster so that a
legitimate quorum vote can take place. I recommend starting at 3
live/backup pairs. If you don't want to increase the size of your cluster
then I recommend using shared-storage instead of replication.
Justin
On Mon, Jan 21, 2019 at 12:14 PM ev.srinivas@gmail.com <
ev.srinivas@gmail.com> wrote:
> Is there any fix/conclusion for this thread. I am having the same issue
> (similar Environment setup) with Split Brain scenario.
>
> Any suggestion/steps how to configure Network pinger for this case.
>
>
>
> --
> Sent from:
> http://activemq.2283324.n4.nabble.com/ActiveMQ-User-f2341805.html
>
Re: 2 broker clusetr, both brokers are live
Posted by "ev.srinivas@gmail.com" <ev...@gmail.com>.
Is there any fix/conclusion for this thread. I am having the same issue
(similar Environment setup) with Split Brain scenario.
Any suggestion/steps how to configure Network pinger for this case.
--
Sent from: http://activemq.2283324.n4.nabble.com/ActiveMQ-User-f2341805.html
Re: 2 broker clusetr, both brokers are live
Posted by boris_snp <bo...@spglobal.com>.
Justin, how the issue with VM bug was resolved? Another VM was used? Which
one? I am running on
java version "1.8.0_121"
Java(TM) SE Runtime Environment (build 1.8.0_121-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.121-b13, mixed mode)
And how do I instantiate 2 brokers in one VM?
Thank you,
Boris
--
Sent from: http://activemq.2283324.n4.nabble.com/ActiveMQ-User-f2341805.html
Re: 2 broker clusetr, both brokers are live
Posted by Justin Bertram <jb...@apache.org>.
If you put the brokers in the same VM (e.g. listening on different ports or
different network interfaces) do you get the same issue?
I actually worked with a user recently who was having intra-VM
communication issues (somewhat similar to what you're seeing - timeouts,
etc.) due to a bug in the VM.
Justin
On Fri, Oct 6, 2017 at 12:35 PM, boris_snp <bo...@spglobal.com>
wrote:
> Yes, the brokers are in separate VM's on the same physical box. And yes,
> this
> setup is for testing only.
>
>
>
> --
> Sent from: http://activemq.2283324.n4.nabble.com/ActiveMQ-User-
> f2341805.html
>
Re: 2 broker clusetr, both brokers are live
Posted by boris_snp <bo...@spglobal.com>.
Yes, the brokers are in separate VM's on the same physical box. And yes, this
setup is for testing only.
--
Sent from: http://activemq.2283324.n4.nabble.com/ActiveMQ-User-f2341805.html
Re: 2 broker clusetr, both brokers are live
Posted by Justin Bertram <jb...@redhat.com>.
> Please note that master and slave are on the same box.
Are they in different VMs on the same physical box? In any event, this
sounds like it could be a problem with your environment if 2 broker
instances on the same box cannot maintain a network connection with each
other.
I assume this setup is just for testing as having the live and the backup
on the same physical machine (even if they are in separate VMs) wouldn't
provide much failure mitigation. Can you confirm?
Justin
On Fri, Oct 6, 2017 at 4:47 AM, boris_snp <bo...@spglobal.com>
wrote:
> Clebert,
>
> I've modified broker.xml for master and slave as follows:
>
> <cluster-connections>
> <cluster-connection name="my-cluster">
> <address>jms</address>
> <connector-ref>artemis</connector-ref>
> <connection-ttl>120000</connection-ttl>
> <reconnect-attempts>-1</reconnect-attempts>
> <message-load-balancing>ON_DEMAND</message-load-balancing>
> <max-hops>0</max-hops>
> <discovery-group-ref discovery-group-name="dg-group1"/>
> </cluster-connection>
> </cluster-connections>
>
> and split brain still happening:
>
> Master 23:22:56,401: AMQ222092: Connection to the backup node failed,
> removing replication now
> Slave 23:24:29,380: AMQ212037: Connection failure has been detected:
> AMQ119011: Did not receive data from server for
> org.apache.activemq.artemis.core.remoting.impl.netty.
> NettyConnection@2eb88966[local=
> /11.203.148.100:47219, remote=arthost1/11.203.148.100:41410]
> [code=CONNECTION_TIMEDOUT]
> 23:25:17,667: AMQ221007: Server is now live
> Master 23:25:19,645: AMQ212034: There are more than one servers on the
> network broadcasting the same node id.
> Slave 23:25:19,660: AMQ212034: There are more than one servers on the
> network broadcasting the same node id.
>
> Please note that master and slave are on the same box. Another point,
> documentation states that reconnect-attempts is "The number of times the
> system will try to reconnect to a node in the cluster."
> Is a backup broker considered as "node"? Does reconnect-attempts apply to
> master-slave reconnection attempts?
>
> Will appreciate any help,
> Boris
>
>
>
>
> --
> Sent from: http://activemq.2283324.n4.nabble.com/ActiveMQ-User-
> f2341805.html
>
Re: 2 broker clusetr, both brokers are live
Posted by boris_snp <bo...@spglobal.com>.
Clebert,
I've modified broker.xml for master and slave as follows:
<cluster-connections>
<cluster-connection name="my-cluster">
<address>jms</address>
<connector-ref>artemis</connector-ref>
<connection-ttl>120000</connection-ttl>
<reconnect-attempts>-1</reconnect-attempts>
<message-load-balancing>ON_DEMAND</message-load-balancing>
<max-hops>0</max-hops>
<discovery-group-ref discovery-group-name="dg-group1"/>
</cluster-connection>
</cluster-connections>
and split brain still happening:
Master 23:22:56,401: AMQ222092: Connection to the backup node failed,
removing replication now
Slave 23:24:29,380: AMQ212037: Connection failure has been detected:
AMQ119011: Did not receive data from server for
org.apache.activemq.artemis.core.remoting.impl.netty.NettyConnection@2eb88966[local=
/11.203.148.100:47219, remote=arthost1/11.203.148.100:41410]
[code=CONNECTION_TIMEDOUT]
23:25:17,667: AMQ221007: Server is now live
Master 23:25:19,645: AMQ212034: There are more than one servers on the
network broadcasting the same node id.
Slave 23:25:19,660: AMQ212034: There are more than one servers on the
network broadcasting the same node id.
Please note that master and slave are on the same box. Another point,
documentation states that reconnect-attempts is "The number of times the
system will try to reconnect to a node in the cluster."
Is a backup broker considered as "node"? Does reconnect-attempts apply to
master-slave reconnection attempts?
Will appreciate any help,
Boris
--
Sent from: http://activemq.2283324.n4.nabble.com/ActiveMQ-User-f2341805.html
Re: 2 broker clusetr, both brokers are live
Posted by Clebert Suconic <cl...@gmail.com>.
You can change the cluster-connection to have a few retries... and
tweak other properties.
I'm not sure if you have any infra-structure issue on your network
that may push a delay eventually?
On Wed, Oct 4, 2017 at 6:29 AM, boris_snp <bo...@spglobal.com> wrote:
> Mike,
>
> I have established network pinger, logging GC's, do not see any network
> failures nor prolonged full GC's (4 - 6 seconds). This is what i see in the
> logs:
> master:
> 19:49:56,364 WARN [org.apache.activemq.artemis.core.client] AMQ212037:
> Connection failure has been detected: AMQ119014: Did not receive data from
> /10.202.147.99:57290 within the 120,000ms connection TTL. The connection
> will now be closed.
> 19:49:56,366 WARN [org.apache.activemq.artemis.core.server] AMQ222092:
> Connection to the backup node failed, removing replication now
> slave:
> 19:50:49,380 WARN [org.apache.activemq.artemis.core.client] AMQ212037:
> Connection failure has been detected: AMQ119011: Did not receive data from
> server for
> org.apache.activemq.artemis.core.remoting.impl.netty.NettyConnection@6da143b4[local=
> /10.202.147.99:57290, remote=nj09mhf0681/10.202.147.99:41410]
> [code=CONNECTION_TIMEDOUT]
> 19:50:50,456 INFO [org.apache.activemq.artemis.core.server] AMQ221037:
> ActiveMQServerImpl::serverUUID=7ffa29a0-7c48-11e7-9784-e83935127b09 to
> become 'live'
> 19:51:08,837 INFO [org.apache.activemq.artemis.core.server] AMQ221007:
> Server is now live
> 19:51:13,444 WARN [org.apache.activemq.artemis.core.client] AMQ212034:
> There are more than one servers on the network broadcasting the same node
> id.
> master:
> 19:51:13,449 WARN [org.apache.activemq.artemis.core.client] AMQ212034:
> There are more than one servers on the network broadcasting the same node
> id.
>
> How can I avoid this? Is there a way to automatically recover from this
> state?
> Will appreciate any help,
> Boris
>
>
>
> --
> Sent from: http://activemq.2283324.n4.nabble.com/ActiveMQ-User-f2341805.html
--
Clebert Suconic