Return-Path: X-Original-To: apmail-activemq-users-archive@www.apache.org Delivered-To: apmail-activemq-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1FF85176D7 for ; Mon, 27 Jul 2015 13:05:31 +0000 (UTC) Received: (qmail 36647 invoked by uid 500); 27 Jul 2015 13:05:30 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 36602 invoked by uid 500); 27 Jul 2015 13:05:30 -0000 Mailing-List: contact users-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@activemq.apache.org Delivered-To: mailing list users@activemq.apache.org Delivered-To: moderator for users@activemq.apache.org Received: (qmail 87717 invoked by uid 99); 27 Jul 2015 01:06:34 -0000 X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3.474 X-Spam-Level: *** X-Spam-Status: No, score=3.474 tagged_above=-999 required=6.31 tests=[FORGED_HOTMAIL_RCVD2=1.187, SPF_SOFTFAIL=0.972, URIBL_BLOCKED=0.001, URI_HEX=1.313, URI_TRY_3LD=0.001] autolearn=disabled Date: Sun, 26 Jul 2015 18:04:59 -0700 (PDT) From: Cadmean To: users@activemq.apache.org Message-ID: <1437959099009-4699892.post@n4.nabble.com> In-Reply-To: References: <1437119658901-4699427.post@n4.nabble.com> <1437703899838-4699769.post@n4.nabble.com> Subject: Re: message stucks in 4 brokers network MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit I just found by setting "duplex=true" connection for every broker, some channels between brokers are blocked. So here is my problem again: I have brokers A,B,C,D and only 1 consumer connected to A, according to the network connections, all the messages from B,C and D should be forwarded to A and get consumed. But after running for a while, I restart the consumer and make it connect to B. Some messages just stay in A and not being forwarded to B. (when I look into it, I found those stuck messages in A are all from broker B,C and D. They have been forwarded to A before I restart the consumer). In this case, how to adapt the borkers to make all the messages consumed? Tim Bain wrote > If all brokers connect to all other brokers using duplex="false", then you > have a complete graph and messages can pass from any broker. So I don't > think duplex has anything to do with your problem. (Though if you have a > duplex connection from every broker to every other broker, then there are > two bi-directional connections between any two nodes, and I don't know how > that would behave; where I've worked with networks of brokers, I've always > avoided having more than one identical network connector between any pair > of nodes.) > > Even if you have connectivity between all nodes, you won't forward > messages > if 1) they've exceeded the max TTL (note: I'm talking about network hops, > NOT JmsExpiration), or 2) they've already been sent to that node and would > now need to be sent back to it. #2 got addressed by your > replayWhenNoConsumer setting. For #1 (which didn't get discussed here), > you might want to check that you've set your TTL high enough to support > the > maximum number of forwards the message would need in your absolute > worst-case scenario (clients repeatedly hopping between brokers, etc). > > Tim > > On Thu, Jul 23, 2015 at 8:11 PM, Cadmean < > hzcadmean@ > > wrote: > >> This problem has been solved by : >> >> 1. setting F5 load balancer as : least connection & session keeping >> >> 2. setting networkConnector as : remove localhost, duplex="true", >> dynamicOnly="true" >> >> 3. setting destination policy as : replayWhenNoConsumer="true" >> >> I think the main problem of my question is duplex="false", which means >> the >> messages forwarded from other brokers cannot replay. >> >> >> >> -- >> View this message in context: >> http://activemq.2283324.n4.nabble.com/message-stucks-in-4-brokers-network-tp4699427p4699769.html >> Sent from the ActiveMQ - User mailing list archive at Nabble.com. >> -- View this message in context: http://activemq.2283324.n4.nabble.com/message-stucks-in-4-brokers-network-tp4699427p4699892.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.