Return-Path: X-Original-To: apmail-jackrabbit-users-archive@minotaur.apache.org Delivered-To: apmail-jackrabbit-users-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E56766341 for ; Mon, 16 May 2011 13:28:42 +0000 (UTC) Received: (qmail 1396 invoked by uid 500); 16 May 2011 13:28:42 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 1372 invoked by uid 500); 16 May 2011 13:28:42 -0000 Mailing-List: contact users-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@jackrabbit.apache.org Delivered-To: mailing list users@jackrabbit.apache.org Received: (qmail 1364 invoked by uid 99); 16 May 2011 13:28:42 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 May 2011 13:28:42 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [188.40.37.16] (HELO hq1.backendmedia.com) (188.40.37.16) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 May 2011 13:28:35 +0000 Received: from localhost (unknown [127.0.0.1]) by hq1.backendmedia.com (Postfix) with ESMTP id 6B10B200C19D for ; Mon, 16 May 2011 13:28:20 +0000 (UTC) X-Virus-Scanned: amavisd-new at backendmedia.com Received: from hq1.backendmedia.com ([127.0.0.1]) by localhost (hq1.backendmedia.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 3GlGg+dup0eQ for ; Mon, 16 May 2011 15:28:11 +0200 (CEST) Received: from [192.168.80.23] (77-58-253-248.dclient.hispeed.ch [77.58.253.248]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: mls@pooteeweet.org) by hq1.backendmedia.com (Postfix) with ESMTPSA id 414A0200C163 for ; Mon, 16 May 2011 15:28:11 +0200 (CEST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Apple Message framework v1084) Subject: Re: Scalable, failsafe and distributed Jackrabbit setup? From: Lukas Kahwe Smith In-Reply-To: <4B1DDAB0-EFB4-4481-8E15-F4D7A6962428@pooteeweet.org> Date: Mon, 16 May 2011 15:28:05 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: <6A5186AA-A347-46C5-A828-B229A3B5E416@pooteeweet.org> References: <4CE22B07.4020700@chregu.tv> <4CE2CCC2.1060003@wyona.com> <4B1DDAB0-EFB4-4481-8E15-F4D7A6962428@pooteeweet.org> To: users@jackrabbit.apache.org X-Mailer: Apple Mail (2.1084) X-Virus-Checked: Checked by ClamAV on apache.org On 13.05.2011, at 16:54, Lukas Kahwe Smith wrote: >=20 > On 16.11.2010, at 19:26, Michael Wechner wrote: >=20 >> On 11/16/10 6:56 AM, Christian Stocker wrote: >>> So what do you think? Is my approach feasible? Am I overthinking it = and >>> the first approach is by far good enough? I don't say, that I need = the >>> full setup yet, I just don't want to get into trouble later, when we >>> actually would need it and have to refactor a lot. >>=20 >> I understand your concerns, but as long as your CMF instances are = using the API >> consistently you shouldn't have to worry much about refactoring at = some later stage, >> whereas this doesn't mean that you don't have to exchange your = persistence implementation >> at some later stage and hence I would suggest that you assume from = the very beginning that you will have >> to migrate your data from one implementation into another one. >>=20 >> Re the actual persistence implementation I don't think there is a = one-fits-all solution, >> but rather it depends on what kind of data you are dealing with and = what kind of queries >> you want to make and as you are pointing out write versus read = access, whereas with >> webapps becoming more interactive I think that write access becomes = much more important >> than today and hence its important to keep this mind re your setup. >=20 >=20 > FYI >=20 > = http://blog.liip.ch/archive/2011/05/04/how-to-make-jackrabbit-globally-dis= tributable-fail-safe-and-scalable-in-one-go.html >=20 > One of the things we are looking to do here is to use this setup to = have a spare slave with jackrabbit running on some small machine, so = that in case our data center disappears forcing a rebuild we already = have a clone able [1] setup ready. One thing we want to ensure is that = this clone is consistent.=20 >=20 > I have only found docs for CRX on this, but it seems to also work with = a stock Jackrabbit to do Lucene index checks on startup: > = http://dev.day.com/content/kb/home/Crx/CrxSystemAdministration/HowToCheckL= uceneIndex.html >=20 > I wonder if there is already some way to trigger these checks on a = running Jackrabbit? should have read the CheckIndex docs to the end: = http://lucene.apache.org/java/2_4_0/api/org/apache/lucene/index/CheckIndex= .html java -ea:org.apache.lucene... org.apache.lucene.index.CheckIndex = pathToIndex [-fix] [-segment X] [-segment Y] regards, Lukas Kahwe Smith mls@pooteeweet.org