I have tried to recreate my case with use of provided tooling (ServerUtil) for
orchestrated server start and stop but I received worrying results on Windows
I'm starting three nodes of the cluster and background threads for produce /
consume (for one minute). After 10 seconds first node is killed, next 10 second
node is killed, next 10 seconds third node is killed and... background
verification is still working! It fails immediately when I use artemis.cmd stop
from command line.
It works on Linux.
From: Justin Bertram [mailto:jbert...@apache.org]
Sent: 05 July 2018 16:07
Subject: Re: [ARTEMIS] Three nodes symmetric static discovery cluster with HA
replication colocated and automatic client failover
I haven't had any time to look into this in depth. Would you be able to
work up a reproducer? I think you could easily modify one of the HA
examples shipped with the broker to reproduce your use-case. You might
even try simplifying it a bit to just 2 nodes. Simpler is always better
for reproducers as it narrows down the investigation. Once you get a
reproducer you can slap it into a GitHub repo somehwere.
On Wed, Jul 4, 2018 at 9:19 AM, Stefaniuk, Marcin <
> I'm struggling to create set-up as mentioned in the subject on ActiveMQ
> Artemis 2.5.0. My key configuration looks as follows (for first node of
> <acceptor name="node-1-universal-plain">tcp://0.0.0.0:61616?
> <connector name="node-1-connector">tcp://localhost:61616</connector>
> <connector name="node-2-connector">tcp://localhost:62616</connector>
> <connector name="node-3-connector">tcp://localhost:63616</connector>
> <cluster-connection name="showcase-cluster">
> <master />
> <slave />
> Rest of nodes has similar configuration - adjusted cluster connections and
> acceptors. I'm deploying it also on three separate hosts (each different
> from localhost). What is important I have no discovery groups (no
> possibility to use UDP).
> So my test is connecting to a cluster using ActiveMQConnectionFactory and
> URI "(tcp://node-1:61616,tcp://node-2:62616)?ha=true&reconnectAttempts=-1"
> (leaving third to be obtained directly from a cluster) and one thread is
> producing and second consuming messages (separate connection used). Test is
> working fine (unsurprisingly) even when producer is connected to different
> nodes of the cluster. But when one node is stopped then producer / consumer
> connected to that node is affected - no send / receive is performed but
> some messages on the client side is buffered and flushed when node is again
> available. I would expect to automagically switch connection to another
> node but it is not happening here. I have tried that previously without HA
> but with the same result.
> Could you help me determine what I'm doing wrong?
> Kind regards
> Marcin Stefaniuk
> CREDIT SUISSE (POLAND) SP. Z O.O
> Solution Architect | Messaging Engineering Warsaw, MITM 47
> Atrium 2 | 00-849 Warsaw | Poland
> stefan...@credit-suisse.com> | www.credit-suisse.com<http://
> Please access the attached hyperlink for an important electronic
> communications disclaimer:
Please access the attached hyperlink for an important electronic communications