Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 83278 invoked from network); 28 Feb 2011 19:33:27 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 28 Feb 2011 19:33:27 -0000 Received: (qmail 36235 invoked by uid 500); 28 Feb 2011 19:33:27 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 36133 invoked by uid 500); 28 Feb 2011 19:33:26 -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 Received: (qmail 36125 invoked by uid 99); 28 Feb 2011 19:33:26 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 28 Feb 2011 19:33:26 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RFC_ABUSE_POST,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [98.138.91.60] (HELO nm22-vm0.bullet.mail.ne1.yahoo.com) (98.138.91.60) by apache.org (qpsmtpd/0.29) with SMTP; Mon, 28 Feb 2011 19:33:16 +0000 Received: from [98.138.90.54] by nm22.bullet.mail.ne1.yahoo.com with NNFMP; 28 Feb 2011 19:32:55 -0000 Received: from [98.138.89.175] by tm7.bullet.mail.ne1.yahoo.com with NNFMP; 28 Feb 2011 19:32:54 -0000 Received: from [127.0.0.1] by omp1031.mail.ne1.yahoo.com with NNFMP; 28 Feb 2011 18:45:30 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 807107.84960.bm@omp1031.mail.ne1.yahoo.com Received: (qmail 25836 invoked by uid 60001); 28 Feb 2011 18:45:30 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1298918730; bh=jsEQX8C5+bepw2ai3UdAvx/8A7xQ/EZDLrOnu+vdqMU=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:References:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=pItYqHB/YjfankLwC3JUV2k0Zv0nJe9tqhbaExAHj8QiZId7AT/ClLN+44YbexywK6e4D//Qp4Rj8fDfvw4tiDWzrrTa66dJzi6UgwwAHDjzAieF98v0ZqA/Jo6/2PSBtNsfVfu+iGd5N/FSF5Ib8qM1jmFa5wQNHw6hAGGl5IY= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:References:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=zrTQXm2acukFRoc4kjzUJZJSJZEuY+c4hovwhzda5/y0vI2cbvu49h/7NAu2b6EFiAp/Q9a2FSl3Ha6AujIAA20lNRg2F9je++rahDm8UedMAllqre1g598SKsE43K5kKhEXPEivC7yHCewa1J/cMLBtSljRn4gvR4BS0PwV+4g=; Message-ID: <734317.19597.qm@web121616.mail.ne1.yahoo.com> X-YMail-OSG: hoJM72EVM1nwmNTRfoUrKO4dh_U7ZUUU2pWGUA4PIDoV5Ti sZjYjUBJhcNhnLT.TPh5bECbg2HSdnD0aRuUL2dz900E50k67UXtLiBtMkY8 7zQThT9ia9OuFdze3o.dS1wWm9MXZTZN2L3mrO0qDbLuzMFOSEMnCHYyCLRy waexFNbfujRQu9F9jTd376qBRCmynLdHiXEhcb6dCd0tGrF.xxTPP_hz5CIa d1Rfg.YlG.niXXPgpN1U_y5gy7txmtkgDJZMF2NUGv76pcw-- Received: from [64.236.128.42] by web121616.mail.ne1.yahoo.com via HTTP; Mon, 28 Feb 2011 10:45:30 PST X-Mailer: YahooMailRC/555 YahooMailWebService/0.8.109.292656 References: <397685.19709.qm@web121605.mail.ne1.yahoo.com> Date: Mon, 28 Feb 2011 10:45:30 -0800 (PST) From: Joe Smith Subject: Re: Connection Re-balance Question To: users@activemq.apache.org In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-733491228-1298918730=:19597" X-Virus-Checked: Checked by ClamAV on apache.org --0-733491228-1298918730=:19597 Content-Type: text/plain; charset=us-ascii Hi Gary, Thanks for the reply. I've tried to attach the activemq.xml - for some reason it's been filtered out. I do have the updateClusterClientsOnRemove="true" attribute on the transport connector. Sorry I did not list it in the original email. Here is the snippet. Broker 1: Broker 2: Will take a look with the code. Not sure which module triggers the re-balance. Thanks, again ________________________________ From: Gary Tully To: users@activemq.apache.org Sent: Mon, February 28, 2011 7:28:49 AM Subject: Re: Connection Re-balance Question Just had a peek at the code[1], you need to add updateClusterClientsOnRemove="true" to your transport connector. It looks like the cluster info is not aware of the broker failure (node removal) and as a result does not update then it joins again. org.apache.activemq.broker.region.RegionBroker#removeBrokerInClusterUpdate [1] http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/region/RegionBroker.java?view=markup On 25 February 2011 22:14, Joe Smith wrote: > Hi, > > I'm using the 5.4.x transport's updateClusterClients="true" > rebalanceClusterClients="true" options. > > > It works fine as a broker is added to the cluster - the existing connections >are > rebalanced. > > > When a broker that's already in the cluster when down, the connections failed > over successfully to the other broker (clients are using failover://). > However, > when I bring up the failed broker, the connections on the other broker are not > re-balanced. > > My questions are: > > 1. Does connection re-balancing work in this scenario - where a known broker in > the cluster comes back on line after a crash? > > 2. What criteria need to be met before re-balance would occur other than when a > NEW (vs. existing) broker is added to the cluster? E.g. we have only 24 client > connections, is that too low? > > We tried both 5.4.1 and 5.4.2. Linux. JVM is 1.6. > > Thanks for the help. > > > -- http://blog.garytully.com http://fusesource.com --0-733491228-1298918730=:19597--