Return-Path: Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: (qmail 76761 invoked from network); 10 Nov 2006 00:32:24 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 10 Nov 2006 00:32:24 -0000 Received: (qmail 28328 invoked by uid 500); 10 Nov 2006 00:32:34 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 28307 invoked by uid 500); 10 Nov 2006 00:32:33 -0000 Mailing-List: contact dev-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@jackrabbit.apache.org Delivered-To: mailing list dev@jackrabbit.apache.org Received: (qmail 28298 invoked by uid 99); 10 Nov 2006 00:32:33 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Nov 2006 16:32:33 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [85.92.66.10] (HELO cook.mywebserver.net) (85.92.66.10) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Nov 2006 16:32:18 -0800 Received: from cpc7-papw1-0-0-cust976.cmbg.cable.ntl.com ([86.1.43.209] helo=tfd.co.uk) by cook.mywebserver.net with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.52) id 1GiKJO-0002rm-7z for dev@jackrabbit.apache.org; Fri, 10 Nov 2006 00:32:02 +0000 Received: from auto10.home.tfd.co.uk ([192.168.115.20]) by tfd.co.uk with esmtpa (Exim 4.50) id 1GiKJ7-0000c1-5C for dev@jackrabbit.apache.org; Fri, 10 Nov 2006 00:31:54 +0000 Message-ID: <4553C86F.1040208@tfd.co.uk> Date: Fri, 10 Nov 2006 00:31:43 +0000 From: Ian Boston User-Agent: Thunderbird 1.5.0.8 (Macintosh/20061025) MIME-Version: 1.0 To: dev@jackrabbit.apache.org Subject: Re: New feature: Clustering References: <66c10f230611060808w3c8c33danc50c8035e4541e61@mail.gmail.com> In-Reply-To: <66c10f230611060808w3c8c33danc50c8035e4541e61@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-TFD-Spam-Score: -5.9 (-----) X-TFD-Scan-Signature: fd3a28eab726752d80ee0bd90e5087e2 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - cook.mywebserver.net X-AntiAbuse: Original Domain - jackrabbit.apache.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - tfd.co.uk X-Source: X-Source-Args: X-Source-Dir: X-Virus-Checked: Checked by ClamAV on apache.org Will it be possible to replace FileJournal with something more message oriented ? eg JGroups or ActiveMQ (JMS Topic) This is to make the cache invalidation a real event rather than a poll, and to make the propagation fast. I believe that you can configure AMQ to manage the persistence of topics in various ways so it may cover the outstanding issues you have with Journal management..... just a thought. Ian (BTW, thanks for you comments on what type of cluster... all makes sense and fits our situation (www.sakaiproject.org) ) Dominique Pfister wrote: > Hi, > > I just committed some files to implement a first approach to > clustering in jackrabbit. Inside this approach, all repositories in > the cluster share the persistence layer (e.g. a derby database started > standalone). When a repository commits some changes, it will write a > log record to a shared "journal" directory. Another repository > watching that directory will eventually read this record, invalidate > its internal caches and fire corresponding events. > > In order to enable clustering on some repositories, do the following > for each repository: > > (1) Configure persistence managers with sharable data sources, e.g. > standalone > databases instead of embedded ones > (2) Add a configuration entry to the end of your repository's > repository.xml: > > > > > > > > > This will make the repository write changes to the directory > "/mnt/journal" and read > changes made by others in the cluster. Make sure that every > repository will get > a different value for the "id" attribute. Alternatively, you may > set the system > property named "org.apache.jackrabbit.core.cluster.node_id" to > your preferred > value. > > Features still missing in the current implementation are: > > - Automatic archival of journal log entries to save space > - Using a database as backend for the journal > - And probably a lot more... > > The status of those features can be tracked here: > > https://issues.apache.org/jira/browse/JCR-623 > > Kind regards > Dominique Pfister