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 88741EC0C for ; Tue, 22 Jan 2013 13:22:27 +0000 (UTC) Received: (qmail 5632 invoked by uid 500); 22 Jan 2013 13:22:27 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 5561 invoked by uid 500); 22 Jan 2013 13:22: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 5544 invoked by uid 99); 22 Jan 2013 13:22:25 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 22 Jan 2013 13:22:25 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of christian.posta@gmail.com designates 209.85.223.174 as permitted sender) Received: from [209.85.223.174] (HELO mail-ie0-f174.google.com) (209.85.223.174) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 22 Jan 2013 13:22:20 +0000 Received: by mail-ie0-f174.google.com with SMTP id k11so5729935iea.19 for ; Tue, 22 Jan 2013 05:21:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type; bh=utEute8xZFJGCSLqKk7bN59CKu7xS5yGJe06wkBnclY=; b=Z/ZTgRe9G0k2LoP3dok9+hPcu8ymOsEdwaIwtohFwfrUGWorWpJuKrpWR1WOFz3rBG 0rT6+21JeUnYicoL8KX5L0R2O8zo+6GTnFuAzJk7QGRC8bz6kk2qpsGu0w14LoVik2YD IBX+D1McDoK5MG+LcDFEqWxQhzrOgCQ78u1oFkZUqteyL88uJ+wDzIrEGo79HsGutEj4 CX+fjMLK/D+ufYD+y0kVY/AZnaMTTgYxidd1qqmDSTiY5VEq24kBlHFwqGHGZMd+SWtw m8ujZF7nADSwULBet2f2K3OZ2wPpK2OJ6yjtCPoMbNR7ab8wK1DRMBhNGVwLuMcxRIku gsfA== MIME-Version: 1.0 X-Received: by 10.50.190.234 with SMTP id gt10mr12138145igc.73.1358860919278; Tue, 22 Jan 2013 05:21:59 -0800 (PST) Received: by 10.50.41.100 with HTTP; Tue, 22 Jan 2013 05:21:59 -0800 (PST) In-Reply-To: References: Date: Tue, 22 Jan 2013 06:21:59 -0700 Message-ID: Subject: Re: failover transport connect From: Christian Posta To: "users@activemq.apache.org" Content-Type: multipart/alternative; boundary=14dae93408dd648bbe04d3e076c5 X-Virus-Checked: Checked by ClamAV on apache.org --14dae93408dd648bbe04d3e076c5 Content-Type: text/plain; charset=ISO-8859-1 Is your broker (mq-1) failing? On Mon, Jan 21, 2013 at 9:24 PM, Nate Faerber wrote: > Hi, > > I have two ActiveMQ server configured as network of brokers and my clients > with this connect string: > > > failover:(tcp://mq1-master:61616,tcp://mq2-master:61616)?randomize=false&backup=true&maxReconnectDelay=10000 > > It seems that every time we create a JMS message using Spring Framework, > the ActiveMQ connection, our clients try the primary then fail to the > secondary. The large (large) majority of messages go through the second > ActiveMQ server. This seems like an inefficiency or at least does not > behave like I would expect it to. Am I misunderstanding the configuration > here? > > 2013-01-21 20:10:27,604 INFO > [org.apache.activemq.transport.failover.FailoverTransport][ActiveMQ > Task-1] [FailoverTransport.java:1030] Successfully connected to > tcp://mq1-master:61616 > 2013-01-21 20:10:27,610 INFO > [org.apache.activemq.transport.failover.FailoverTransport][ActiveMQ > Task-1] [FailoverTransport.java:1032] Successfully reconnected to > tcp://mq2-master:61616 > > My servers have this config: > > > name="${broker.transport.client.name}" > uri="${broker.transport.client.uri}" > updateClusterClients="true" > updateClusterClientsOnRemove="true" > rebalanceClusterClients="true" /> > > name="${broker.transport.network.name}" > uri="${broker.transport.network.uri}" /> > > > Thoughts appreciated. > > thanks, > -nate > -- *Christian Posta* http://www.christianposta.com/blog twitter: @christianposta --14dae93408dd648bbe04d3e076c5--