From dev-return-30320-apmail-activemq-dev-archive=activemq.apache.org@activemq.apache.org Mon Feb 6 20:34:25 2012 Return-Path: X-Original-To: apmail-activemq-dev-archive@www.apache.org Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E03BE9BE7 for ; Mon, 6 Feb 2012 20:34:24 +0000 (UTC) Received: (qmail 30475 invoked by uid 500); 6 Feb 2012 20:34:22 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 29729 invoked by uid 500); 6 Feb 2012 20:34:21 -0000 Mailing-List: contact dev-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@activemq.apache.org Delivered-To: mailing list dev@activemq.apache.org Received: (qmail 29721 invoked by uid 99); 6 Feb 2012 20:34:20 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Feb 2012 20:34:20 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Feb 2012 20:34:19 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id BEE4DCC4B8 for ; Mon, 6 Feb 2012 20:33:59 +0000 (UTC) Date: Mon, 6 Feb 2012 20:33:59 +0000 (UTC) From: "Timothy Bish (Resolved) (JIRA)" To: dev@activemq.apache.org Message-ID: <1097062383.3509.1328560439783.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Resolved] (AMQ-2375) Allow a group preference scheme for failover urls MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/AMQ-2375?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Timothy Bish resolved AMQ-2375. ------------------------------- Resolution: Duplicate Fix Version/s: (was: 5.x) 5.6.0 You should be able to use the enhancements made in AMQ-3699 to accomplish this. > Allow a group preference scheme for failover urls > ------------------------------------------------- > > Key: AMQ-2375 > URL: https://issues.apache.org/jira/browse/AMQ-2375 > Project: ActiveMQ > Issue Type: Improvement > Components: JMS client > Environment: All > Reporter: Andreas Gies > Fix For: 5.6.0 > > > This enhancement request comes from working with a network of brokers, where each node in itself has a master/slave fault tolerant configuration. > In a 2x2 setup currently you would have a failover url on the client side consisting of 4 single urls (2 masters, 2 slaves). Once a broker dies the JMS client would reconnect > using one of the 4 urls either randomly chosen or in sequence of the url definition. > That might cause the client to reconnect to a broker that belongs to the other master/slave pair. As master/slave is designed to preserve the session state etc, it would be preferable > that the client tries to connect to the new master in its own master/slave group and only if that fails, connect to another broker. > I would imagine a nested scheme of configurations, something like: > failover:(failover:(master1,slave1)?randomize=false,failover:(master2,slave2)?randomize=false)?randomize=true > instead of > failover:(master1,slave1,master2,slave2) -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira