Return-Path: X-Original-To: apmail-jackrabbit-dev-archive@www.apache.org Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7D30D47FA for ; Wed, 11 May 2011 11:15:25 +0000 (UTC) Received: (qmail 94889 invoked by uid 500); 11 May 2011 11:15:25 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 94861 invoked by uid 500); 11 May 2011 11:15:25 -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 94854 invoked by uid 99); 11 May 2011 11:15:25 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 May 2011 11:15:25 +0000 X-ASF-Spam-Status: No, hits=-2.3 required=5.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of b.vanderschans@1hippo.com designates 64.18.2.16 as permitted sender) Received: from [64.18.2.16] (HELO exprod7og119.obsmtp.com) (64.18.2.16) by apache.org (qpsmtpd/0.29) with SMTP; Wed, 11 May 2011 11:15:18 +0000 Received: from mail-vw0-f50.google.com ([209.85.212.50]) (using TLSv1) by exprod7ob119.postini.com ([64.18.6.12]) with SMTP ID DSNKTcpvsvJtbUriGYfqsbsviD8FncWmTPqz@postini.com; Wed, 11 May 2011 04:14:58 PDT Received: by vws14 with SMTP id 14so270555vws.9 for ; Wed, 11 May 2011 04:14:57 -0700 (PDT) Received: by 10.52.96.71 with SMTP id dq7mr1032187vdb.157.1305112497363; Wed, 11 May 2011 04:14:57 -0700 (PDT) MIME-Version: 1.0 Received: by 10.52.158.40 with HTTP; Wed, 11 May 2011 04:14:37 -0700 (PDT) In-Reply-To: <4DCA6AF6.1060903@liip.ch> References: <4DBE97F9.3030303@liip.ch> <4DBEA833.3050104@liip.ch> <4DC153C4.5090300@liip.ch> <4DCA6AF6.1060903@liip.ch> From: Bart van der Schans Date: Wed, 11 May 2011 13:14:37 +0200 Message-ID: Subject: Re: Add more options to make Jackrabbit more failsafe and/or scale-out To: Christian Stocker Cc: dev@jackrabbit.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On Wed, May 11, 2011 at 12:54 PM, Christian Stocker wrote: > > Hi > > Just one thing to avoid missunderstandings. > > On 11.05.11 12:01, Bart van der Schans wrote: >> Hi Christian, >> > >> >> Does anybody have some pointer why it's trying to write? It seem to >> shutdown just fine anyway.. It doesn't make much sense to me to create >> a ReadOnlyDatabaseFileSystem just to avoid this shutdown issue. >> >> I think the solution I created is a bit more narrow as it only aims to >> allow to run JR on a database slave node independently. I think >> Christian's idea can be expanded to separate all write database >> operations from read operations in JR, which would allow for scaling >> out in heavy read dependent environments =A0with multiple db slaves >> while keeping a single db master for handling all writes. > > My patch only seperates the read/writes for the cluster journal > operations. It doesn't seperate the "common" read/write request handled > by the PM. This of course only works, if your Jackrabbit instances using > the slaves only do reads and no PM-writes at all. You should handle the > seperation in your application (read from the read-only Jackrabbit, but > write to the write-enabled Jackrabbits), the same as you would do, you > if you would use a traditional master/slave MySQL Setup (with no > Jackrabbit or other CR at all) That's why I said your patch/idea could be "expanded" ;-) If the db operations where read/write separated, you wouldn't have to worry in your application about "write-enabled" JRs. Then JR would take care of doing the writes in the master database and the reads from the slave database(s). Regards, Bart