Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 51920 invoked from network); 3 Apr 2007 07:36:51 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 3 Apr 2007 07:36:51 -0000 Received: (qmail 49105 invoked by uid 500); 3 Apr 2007 07:36:58 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 49070 invoked by uid 500); 3 Apr 2007 07:36:57 -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 49057 invoked by uid 99); 3 Apr 2007 07:36:57 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Apr 2007 00:36:57 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of mteira@tid.es designates 193.145.240.2 as permitted sender) Received: from [193.145.240.2] (HELO correo.tid.es) (193.145.240.2) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Apr 2007 00:36:49 -0700 Received: from tid (filvit [192.168.48.202]) by tid.hi.inet (iPlanet Messaging Server 5.2 HotFix 2.14 (built Aug 8 2006)) with ESMTP id <0JFW00BRVVSR09@tid.hi.inet> for users@activemq.apache.org; Tue, 03 Apr 2007 09:36:28 +0200 (MEST) Received: from [10.95.89.29] by tid.hi.inet (iPlanet Messaging Server 5.2 HotFix 2.14 (built Aug 8 2006)) with ESMTPA id <0JFW0058GVSRF3@tid.hi.inet> for users@activemq.apache.org; Tue, 03 Apr 2007 09:36:27 +0200 (MEST) Date: Tue, 03 Apr 2007 09:36:24 +0200 From: Manuel Teira Subject: Best approach for HA message broker + grid Sender: mteira@tid.es To: users@activemq.apache.org Message-id: <461203F8.8030606@tid.es> MIME-version: 1.0 Content-type: text/plain; format=flowed; charset=ISO-8859-1 Content-transfer-encoding: 7BIT User-Agent: Thunderbird 1.5.0.10 (Windows/20070221) X-Virus-Checked: Checked by ClamAV on apache.org Hello. My aim is to have a set of brokers, running in different machines, to consume messages coming from different clients, to be able to scale the system for future needs. Furthermore, HA features are also required, to protect the system on hardware malfunction. Looking at the alternatives that ActiveMQ provides to achieve these goals, it seems to me that I could get the grid behaviour using the "Network of Brokers" feature, where all the brokers are "alive". I understand that when more than one broker have consumers for a given queue, the messages are shared among them. But in my first tests, I've found that most of times, all the messages get consumed by one of the brokers. Could this be caused by a (default) high prefetch value? Talking about the HA needs, I've read that a master-slave aproximation could be used, but here I won't have the grid behaviour benefits of the "Network of brokers" approach (as only one of the brokers is actually active). I would like to have a combined behaviour, where messages persist a hardware failure (better if restarting the failing node was not needed to restore them), and where messages were shared among consumers from different brokers. I was thinking about using a "Network of Brokers" with a low prefetch value for the shared queues and disable journal files, to minimize the amount of messages "owned" by a given broker. As the database is located in a different machine, I could always restart a new broker using the schema of the failing one. Is this a right approach? Any other idea to implement this scenario? Best regards.