From users-return-50771-archive-asf-public=cust-asf.ponee.io@activemq.apache.org Fri Dec 7 22:54:00 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 9A800180647 for ; Fri, 7 Dec 2018 22:53:59 +0100 (CET) Received: (qmail 47801 invoked by uid 500); 7 Dec 2018 21:53:58 -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 47786 invoked by uid 99); 7 Dec 2018 21:53:57 -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, 07 Dec 2018 21:53:57 +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 7FFDEC219C for ; Fri, 7 Dec 2018 21:53:57 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 4.653 X-Spam-Level: **** X-Spam-Status: No, score=4.653 tagged_above=-999 required=6.31 tests=[FREEMAIL_ENVFROM_END_DIGIT=0.25, HEADER_FROM_DIFFERENT_DOMAINS=0.001, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001, URI_HEX=1.313, URI_TRY_3LD=1.091] autolearn=disabled 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 2YT5G3kRD-BK for ; Fri, 7 Dec 2018 21:53:56 +0000 (UTC) Received: from mail-wm1-f54.google.com (mail-wm1-f54.google.com [209.85.128.54]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id BCCBF5F10F for ; Fri, 7 Dec 2018 21:53:55 +0000 (UTC) Received: by mail-wm1-f54.google.com with SMTP id q26so5825075wmf.5 for ; Fri, 07 Dec 2018 13:53:55 -0800 (PST) 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=Xc+Dy4Rz7rOgaZt8OY+tPmm3Q6B/v1zo7jn3IzHnGvo=; b=E3vvcutmMcG2UkOvAowJhgLWN7bkl6mrSg9eQ41NyL+C5ukX6LUvLgnt3dCQYTWJjc c7OkbdKf3UPxgd4T9t2ZvOy0o0gSFjjR/11Bz+GwvRgkaqMdfyz5kXfOUdqRXyLuQ1Ov vcm0W3O3QMRjHdLp8taqRR+LU7lUxovJrRYcSm6xJIn7p0dcUWBHV8WLSt2t+wQsLRU6 EuMzuh7jr9ybBCQKm7SWmpyMikl3r9p5E7HYINOr+RFwLKPKkGKHWAv+n8p8K3BHEJtf jGJiTD+g3sKsa6QOUbZG5hIMMKjJ+ngtmNeUIXS7RHOIB6GyKJduaraElqRsMNuSF65m vsnw== X-Gm-Message-State: AA+aEWbWrubu22rFzyM9TAeN/iHN9cr5EeIMc1EHugG98fr/+ngadEHO zbToHDsL6CB6tiK0IG4tYYLMTHTsJj12UcVybFHpvA== X-Google-Smtp-Source: AFSGD/XCfBGTJ9/jZGhJ0L+orZLRIWklE0zFuVuH0HydTgFvDX/ybVuvq8+UL/fUGlblB7/xqTLb3TZIaykCOEEh+Wg= X-Received: by 2002:a7b:c399:: with SMTP id s25mr3782029wmj.90.1544219634327; Fri, 07 Dec 2018 13:53:54 -0800 (PST) MIME-Version: 1.0 References: <1543510226418-0.post@n4.nabble.com> <1543584628584-0.post@n4.nabble.com> <1543595733216-0.post@n4.nabble.com> <1544031101927-0.post@n4.nabble.com> In-Reply-To: <1544031101927-0.post@n4.nabble.com> From: Tim Bain Date: Fri, 7 Dec 2018 14:53:43 -0700 Message-ID: Subject: Re: ActiveMQ HA on failover topic mode To: ActiveMQ Users Content-Type: multipart/alternative; boundary="000000000000c271da057c75a6cc" --000000000000c271da057c75a6cc Content-Type: text/plain; charset="UTF-8" Can you please characterize the messages that are lost? Do you lose the last few messages sent before the failover, or one here and there, or...? Also, are you killing the broker gracefully (sending it a stop command) or ungracefully (kill -9, etc.)? Might the messages that are lost simply be the result of asynchronously published messages that haven't yet hit the disk when you ungracefully kill the broker process? Have you tried using synchronous sends? Tim On Wed, Dec 5, 2018, 10:31 AM PedroRP Hi Tim! > > Sorry about the late answer. I fixed the configuration and now I have a > master/slave that work fine. But I still lose messages. I checked the > consumer connection and It is equal than the producer. Moreover when I > disconnect master broker consumer and producer reconnect to the slave > broker. To make the failover I only introduced in url of connection factory > failover:(tcp://broker1:61616,tcp://broker2:61616) > Is it necessary any additional configuratio? > For more information, I tried inserting 10000 messages in a topic. > > Thanks in advance! > > > > -- > Sent from: > http://activemq.2283324.n4.nabble.com/ActiveMQ-User-f2341805.html > --000000000000c271da057c75a6cc--