Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 71617 invoked from network); 7 Jun 2005 09:05:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 7 Jun 2005 09:05:23 -0000 Received: (qmail 69377 invoked by uid 500); 7 Jun 2005 09:05:17 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 69349 invoked by uid 500); 7 Jun 2005 09:05:16 -0000 Mailing-List: contact java-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-user@lucene.apache.org Delivered-To: mailing list java-user@lucene.apache.org Received: (qmail 69335 invoked by uid 99); 7 Jun 2005 09:05:16 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from mail.bayt.net (HELO mail.bayt.net) (216.176.57.91) by apache.org (qpsmtpd/0.28) with ESMTP; Tue, 07 Jun 2005 02:05:14 -0700 Received: from [192.168.1.24] [213.132.40.2] by mail.bayt.net with ESMTP (SMTPD32-8.15) id A5D7356300AA; Tue, 07 Jun 2005 05:16:07 -0400 Message-ID: <42A56339.6050001@bayt.net> Date: Tue, 07 Jun 2005 13:04:57 +0400 From: Nader Henein Reply-To: nsh@bayt.net Organization: Bayt.com User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: java-user@lucene.apache.org Subject: Re: Lucene in clustered environment (Tomcat) References: <5f4a6461050606234078585ec5@mail.gmail.com> <42A54448.3010008@bayt.net> <5f4a64610506070151f9bc000@mail.gmail.com> In-Reply-To: <5f4a64610506070151f9bc000@mail.gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Declude-Sender: nsh@bayt.net [192.168.1.24] X-Declude-Spoolname: D65D6356300AA4507.SMD X-Declude-Note: Scanned by Declude 2.0.6 (http://www.declude.com/x-note.htm) for spam. X-Declude-Scan: Score [0] at 05:16:08 on 07 Jun 2005 X-Declude-Tests: Whitelisted X-Country-Chain: X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N When you say your cluster is on a single machine, do you mean that you have multiple webservers on the same machine all of which search a single Lucene index? Because if that's the case, your solution is simple, as long as you persist to a single DB and then designate one of your servers (or even another server) to update/delete the index. Do you use Lucene as your persistent store or do you have a DB back there? and what is your current update/delete strategy because real time inserts from the webservers directly to the index will not work because you can't have multiple writers. Updating a dirty flag on rows that need to be indexed/deleted, or using a table for this task and then batching your updates would be ideal, and if you're using server specific scheduling, I strongly recommend Quartz, it's rock solid and really versatile. My two cents. Nader Henein Ben wrote: >My cluster is on a single machine and I am using FS index. > >I have already integrated Lucene into my web application for use in a >non-clustered environment. I don't know what I need to do to make it >work in a clustered environment. > >Thanks, >Ben > >On 6/7/05, Nader Henein wrote: > > >>IMHO, Issues that you need to consider >> >> * Atomicity of updates and deletes if you are using multiple indexes >> on multiple machines (the case if your cluster is over a wide network) >> * Scheduled indecies to core data comparison and sanitization >> (intensive) >> >>This all depends on what the volume of change is on your index and >>whether you'll be using a Memory resident index or an FS index. >> >>This should start the ball rolling, we've been using Lucene successfully >>on a distributed cluster for a while now, and as long as you're aware of >>some basic NDS limitations/constraints you should be fine. >> >>Hope this helps >> >>Nader Henein >> >>Ben wrote: >> >> >> >>>Hi >>> >>>I would like to use Lucene in a clustered environment, what are the >>>things that I should consider and do? >>> >>>I would like to use the same ordinary index storage for all the nodes >>>in the the cluster, possible? >>> >>>Thanks, >>>Ben >>> >>>--------------------------------------------------------------------- >>>To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org >>>For additional commands, e-mail: java-user-help@lucene.apache.org >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>-- >> >>Nader S. Henein >>Senior Applications Architect >> >>Bayt.com >> >> >> >> >> >>--------------------------------------------------------------------- >>To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org >>For additional commands, e-mail: java-user-help@lucene.apache.org >> >> >> >> > >--------------------------------------------------------------------- >To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org >For additional commands, e-mail: java-user-help@lucene.apache.org > > > > > > > > > -- Nader S. Henein Senior Applications Architect Bayt.com --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org