Return-Path: Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: (qmail 21628 invoked from network); 14 Jul 2008 19:58:52 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 14 Jul 2008 19:58:52 -0000 Received: (qmail 16926 invoked by uid 500); 14 Jul 2008 19:58:51 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 16893 invoked by uid 500); 14 Jul 2008 19:58:51 -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 16870 invoked by uid 99); 14 Jul 2008 19:58:51 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 14 Jul 2008 12:58:51 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 14 Jul 2008 19:58:06 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 92D64234C171 for ; Mon, 14 Jul 2008 12:58:00 -0700 (PDT) Message-ID: <1648303934.1216065480596.JavaMail.jira@brutus> Date: Mon, 14 Jul 2008 12:58:00 -0700 (PDT) From: "Dmitry Tsigelnik (JIRA)" To: dev@activemq.apache.org Subject: [jira] Issue Comment Edited: (AMQ-1832) Pure Master/Slave to allow shutdownOnSlaveFailure to be configured on master In-Reply-To: <1453941210.1214855761071.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/activemq/browse/AMQ-1832?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=44280#action_44280 ] tsigelnik edited comment on AMQ-1832 at 7/14/08 12:57 PM: ----------------------------------------------------------------- No. I want to use the same configuration as yours: Datacenter1 (Master A / Slave B) <=> Datacenter2(Master B / Slave A) But if you shutdown master which loose connection to slave that means some messages which is contained by current master won't relocated to another master in time. I think better solution is full replication of master's sate at the moment of attaching slave to master. Also slave musn't shutdown on loosing connection to master, becasue it's possible network problem. Slave must retry to reconnect to master in current of hour, for example, and then shutdown. It's too hard to our operations team restart ActiveMQ server each time when network is down. Unfortunely, network problems happen very quikly. Sometimes electricity is down in all datacenter... I think master must keep working when slave is disconnected. I derrived slave BrokerService and added reconnection logic. Problem for me is master state is not fully replicated on attaching slave. I think, shutdowning master is bad solution was (Author: tsigelnik): No. I want to use the same configuration as yours: Datacenter1 (Master A / Slave B) <=> Datacenter2(Master B / Slave A) But if you shutdown master which loose connection to slave that means some messages which is contained by current master won't relocated to another master in time. I think better solution is full replication of master's sate at the moment of attaching slave to master. Also slave musn't shutdown on loosing connection to master, becasue it's possible network problem. Slave must retry to reconnect to master fo example in current of hour and then shutdown. It's too hard to our operations team restart ActiveMQ server each time when network is down. Unfortunely, network problems happen very quikly. Sometimes electricity is down in all datacenter... I think master must keep working when slave is disconnected. I derrived slave BrokerService and added reconnection logic. Problem for me is master state is not fully replicated on attaching slave. I think, shutdowning master is bad solution > Pure Master/Slave to allow shutdownOnSlaveFailure to be configured on master > ---------------------------------------------------------------------------- > > Key: AMQ-1832 > URL: https://issues.apache.org/activemq/browse/AMQ-1832 > Project: ActiveMQ > Issue Type: Improvement > Reporter: ying > Attachments: AMQ1832-596-1820Patch.txt > > > It is related to AMQ-596 in terms that it is desirable that master and slave are in synch and when both are down, failover can direct the job to other pair of master/slave. So pure master/slave can be used for replication while a network of pair (master/slave) will provide a HA service. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.