Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 7AE35200C06 for ; Fri, 27 Jan 2017 15:29:15 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 797F3160B5B; Fri, 27 Jan 2017 14:29:15 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id BB6E0160B47 for ; Fri, 27 Jan 2017 15:29:14 +0100 (CET) Received: (qmail 8975 invoked by uid 500); 27 Jan 2017 14:29:13 -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 8958 invoked by uid 99); 27 Jan 2017 14:29:13 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 27 Jan 2017 14:29:13 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 11574C0E29 for ; Fri, 27 Jan 2017 14:29:13 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 5.581 X-Spam-Level: ***** X-Spam-Status: No, score=5.581 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, KAM_BADIPHTTP=2, KAM_LINEPADDING=1.2, NORMAL_HTTP_TO_IP=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001, WEIRD_PORT=0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id sTxbDqPh723e for ; Fri, 27 Jan 2017 14:29:09 +0000 (UTC) Received: from mail-yw0-f174.google.com (mail-yw0-f174.google.com [209.85.161.174]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 5D3535F4A7 for ; Fri, 27 Jan 2017 14:29:09 +0000 (UTC) Received: by mail-yw0-f174.google.com with SMTP id v200so15775141ywc.3 for ; Fri, 27 Jan 2017 06:29:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=iIchO6x3DI4GSXEToJiLuASSe//HnAcU0ndsgyHvyXU=; b=BN1KrK6+SSeILL7p7e5xS4wzV6qmUc53z1UHtw9nFPCHdUjtCYu+XU1O0WFNmLWiWo yLI+cgWToXPx0h8SaSYv4MMTWiBJEwvwbS9jnfRJSNZopju5hmwqGwVMsEzKq2xF7sKy NjclpFyQfoXBt6Dfm97Jvx1LlxoCjPqXthv03DwZILZZyBArpEWkNKHQDcxXy8ssLcKd /B+pcrhqgF7XxFxMbb+ErOSYOgYb473Kbya/Qz4e6UzfBd0SrOH9FJMgJsDHPDjlUf9M rjPNjn9SgZfRCMmii/Gnqq2vvFVB1RoksdEe9HirwO9oqfPjEz4CQV99MK3EKQjoYzGe zihw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=iIchO6x3DI4GSXEToJiLuASSe//HnAcU0ndsgyHvyXU=; b=WPPR9oWyMTYPSgzIUiCtbZOs1yE+8xT9SUHGQvxaoSfpl2VjeNaZLvIQIzVC0F2lPb txshOGitwhCgotOBqt3MSxFH/lZkZO7JQDeI2jfAWnywSdp25IZqWVA61zMdRFJBZSh2 TXFUHEkpY+IJSi4XGfwJOwBiWevpE/FZi5LEzJna6wa8Gg/UAmUhtl3qI/0TBOLH3ILz KpWRTMRlBWoc9XO1fo6+Hr3eY1kvcounNVZkHWWs4Htwp0DXw76xdggFDXc0f3mYkXv6 To8cAON8uLrTuHC3N6XF+EAV711Y+Ft3GK5wT0M3U7z+71Eja7DAcJXhYRAjUSm33ryz OfQg== X-Gm-Message-State: AIkVDXLvUHujfe+33Mp5sZnGu+/jm3fidWoQW9mJ78x6cbd3kwEVHTzNScxyW8WzF+eUKajngykEvqfazNLnzA== X-Received: by 10.129.74.137 with SMTP id x131mr5679612ywa.219.1485527348886; Fri, 27 Jan 2017 06:29:08 -0800 (PST) MIME-Version: 1.0 References: <6D6FAA02-78BB-4A8C-99DE-F8F494FD6337@crv4all.com> <968826C8-10BA-45BE-8988-E17C0FA073DC@crv4all.com> In-Reply-To: From: Clebert Suconic Date: Fri, 27 Jan 2017 14:28:58 +0000 Message-ID: Subject: Re: Problems setting up replicated ha-policy. To: users@activemq.apache.org Content-Type: multipart/alternative; boundary=001a114d7990ef486405471449bc archived-at: Fri, 27 Jan 2017 14:29:15 -0000 --001a114d7990ef486405471449bc Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable I won't be able to get to a computer today. Only on Monday. Meanwhile can you compare your config with the replicated examples from the release? That's what I would do anyways. Try with a single live/backup. Make sure the Id match on the backup so it can pull the data. Let me know how it goes. I may find a time to open a computer this afternoon. On Fri, Jan 27, 2017 at 5:32 AM Gerrit Tamboer wrote: > Hi Clebert, > > Thanks for pointing this out. > > I just tested 1.5.2 but unfortunately the results are exactly the same. N= o > failover situation although the slave sees the master going down. The sla= ve > does not even notice a master being gone after a kill -9. > > This leads me to believe I have a misconfiguration, because if this is > designed to work like this, it=E2=80=99s not really HA =E2=98=BA. > > I have added the broker.xml=E2=80=99s of all nodes to this mail again, ho= pefully > somebody has a simular setup and can verify the configuration. > > Thanks a bunch! > > Regards, > Gerrit Tamboer > > > On 27/01/17 04:33, "Clebert Suconic" wrote: > > Until recently (1.5.0) you would only have the TTL to decide when to > activate backup. > > > Recently connection failures will also play in the decision to activate i= t. > > > So on 1.3.0 you will be bound to the TTL of the cluster connection. > > > On 1.5.2 ir should work with kill but you would still be bound to TTL in > case of a cable cut or switch of but that's the deal of tcp-ip > > > > > > > > On Thu, Jan 26, 2017 at 7:24 AM Gerrit Tambour > > wrote: > > > Forgot to send the attachments! > > > > > > > > *From: *Gerrit Tamboer > > *Date: *Thursday 26 January 2017 at 13:23 > > *To: *"users@activemq.apache.org" > > *Subject *Problems setting up replicated ha-policy. > > > > > > > > Hi community, > > > > > > > > We are attempting to setup a 3 node Artemis (1.3.0) cluster with an > > active-passive failover situation. We see that the master node is > actively > > accepting connections: > > > > > > > > 09:52:30,167 INFO [org.apache.activemq.artemis.core.server] AMQ221000: > > live Message Broker is starting with configuration Broker Configuration > > (clustered=3Dtrue > > > ,journalDirectory=3D./data/journal,bindingsDirectory=3D./data/bindings,la= rgeMessagesDirectory=3D./data/large-messages,pagingDirectory=3D/opt/jamq_pa= ging_data/data) > > > > 09:52:33,176 INFO [org.apache.activemq.artemis.core.server] AMQ221020: > > Started Acceptor at 0.0.0.0:61616 for protocols > > [CORE,MQTT,AMQP,HORNETQ,STOMP,OPENWIRE] > > > > > > > > The slaves are able to connect to the master and are reporting that the= y > > are in standby mode: > > > > > > > > 08:16:57,426 INFO [org.apache.activemq.artemis.core.server] AMQ221000: > backup Message Broker is starting with configuration Broker Configuration > (clustered=3Dtrue,journalDirectory=3D./data/journal,bindingsDirectory=3D.= /data/bindings,largeMessagesDirectory=3D./data/large-messages,pagingDirecto= ry=3D/opt/jamq_paging_data/data) > > > > 08:18:38,529 INFO [org.apache.activemq.artemis.core.server] AMQ221109: > Apache ActiveMQ Artemis Backup Server version 1.3.0 [null] started, waiti= ng > live to fail before it gets active > > > > > > > > However, when I kill the master node now, it reports that the master is > > gone , but does not become active itself: > > > > > > > > 08:20:14,987 WARN [org.apache.activemq.artemis.core.client] AMQ212037: > Connection failure has been detected: AMQ119015: The connection was > disconnected because of server shutdown [code=3DDISCONNECTED] > > > > > > > > When I do a kill -9 on the PID of the master java process, it does not > > even report that the master has gone away. > > > > I also tested this in Artemis 1.5.1, with the same results. Also removi= ng > > one of the slaves (to have a simple master-slave setup), also does not > work. > > > > My expectation is that if the master dies, one of the slaves becomes > > active. > > > > Attached you will find the broker.xml of all 3 nodes. > > > > > > > > Thanks in advance for the help! > > > > > > > > Kind regards, > > > > Gerrit Tamboer > > > > > > > > > > This message is subject to the following E-mail Disclaimer. ( > > http://www.crv4all.com/disclaimer-email/) CRV Holding B.V. seats > > according to the articles of association in Arnhem, Dutch trade number > > 09125050. > > > -- > Clebert Suconic > > > This message is subject to the following E-mail Disclaimer. ( > http://www.crv4all.com/disclaimer-email/) CRV Holding B.V. seats > according to the articles of association in Arnhem, Dutch trade number > 09125050. > --=20 Clebert Suconic --001a114d7990ef486405471449bc--