Isn't this essentially the same question you asked on Stack Overflow [1]? If so, why are you asking it again here when you have marked the answer as correct. If not, please elaborate as to how the two use-cases differ. Thanks!
Justin [1] https://stackoverflow.com/questions/67644488/activemq-artemis-cluster-does-not-redistribute-messages-after-one-instance-crash On Tue, Jun 1, 2021 at 8:42 PM Thai Le <[email protected]> wrote: > Hello guys, > > I have a cluster of 2 Artemis brokers (2.17.0) without HA running in > kubernetes. They are configured with redistribution-delay=0 but when the > consumer dies and comes back it connects to the other Artemis node but > redistribution of left over messages from the previous Artemis node does > not happen. > > The client connection is defined like this: > > spring.artemis.broker-url= > (tcp://activemq-artemis-master-0.activemq-artemis-master.n-stack-nle.svc.cluster.local:61616,tcp://activemq-artemis-master-1.activemq-artemis-master.n-stack-nle.svc.cluster.local:61616) > > In my test, I sent 10 messages to the queue, then I killed the > consumer after it consumed the first 3. When kubernetes revived the > consumer, I saw it reconnected to the other Artemis pod (same queue name > created) but the queue was empty. The queue on the previous Artemis pod > still has 7 messages undelivered. > > Is there a config I am missing? > > Regards > > Thai Le >
