Return-Path: X-Original-To: apmail-lucene-java-user-archive@www.apache.org Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6754CED27 for ; Tue, 22 Jan 2013 12:08:46 +0000 (UTC) Received: (qmail 79107 invoked by uid 500); 22 Jan 2013 12:08:44 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 78555 invoked by uid 500); 22 Jan 2013 12:08:38 -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 78455 invoked by uid 99); 22 Jan 2013 12:08:36 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 22 Jan 2013 12:08:36 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of xekoukou@gmail.com designates 74.125.82.53 as permitted sender) Received: from [74.125.82.53] (HELO mail-wg0-f53.google.com) (74.125.82.53) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 22 Jan 2013 12:08:31 +0000 Received: by mail-wg0-f53.google.com with SMTP id fn15so655588wgb.32 for ; Tue, 22 Jan 2013 04:08:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type; bh=HNW2LAaB/Hje3ZvQhqNhcPopgsqe9vShykig9tZTkww=; b=YC57O+weLc8coU2R4/xijXan7FWfEw9uAKfO59rLNwIZBbB8a9IPRgWpfq0aGazeDT V42lPAM57OAc9VlchjQpHLoCEux4RT+mKzGzGb9H5a6WIgFA2Fkm4GnYsMy01LqKj4vG HQppgI+YyaxrP0Lqu3nt3vCf42Gdwam+HqKckZY+CpH1c+Y/gIK0o1imdDSBcblEljDR Kp9/kh3em+Ozs91ftRBK5pdoi6FB9V2gMGHWG/SIj3Eav/td6cPNTyer64o5zAJv8kbs TKgeeWj6I4HXXOlt8cKLQ+bHnDW51MCLuhqXJNN2by0WOjJTsAyX1r3M/dQ29LnQICzA dnRw== MIME-Version: 1.0 X-Received: by 10.180.95.200 with SMTP id dm8mr20797391wib.16.1358856489746; Tue, 22 Jan 2013 04:08:09 -0800 (PST) Received: by 10.217.70.72 with HTTP; Tue, 22 Jan 2013 04:08:09 -0800 (PST) In-Reply-To: References: Date: Tue, 22 Jan 2013 14:08:09 +0200 Message-ID: Subject: Re: Is LogByteSizeMergePolicy deterministic? From: Apostolis Xekoukoulotakis To: java-user@lucene.apache.org Content-Type: multipart/alternative; boundary=f46d044306065f40c004d3df6ec4 X-Virus-Checked: Checked by ClamAV on apache.org --f46d044306065f40c004d3df6ec4 Content-Type: text/plain; charset=ISO-8859-1 I havent started working on this yet. I use the LogByteSizeMergePolicy because of personal reasons that have nothing to do with replication. I havent found a lucene replication method. (?) >From my research, there are 2 ways to replicate an index. a) You stop indexing. You make a "hard" commit and you replicate the files of this commit. or you change the deletion policy and simply replicate an old commit while you continue to index. b)You send documents to both replicas which they index independently. This is done to take advantage of the near-real-time feature of lucene. when one replica goes offline but is intact, If the missed documents are a lot you do a), else you replay the missed documents to the replica. Method a) also seems to not be durable for the new documents which havent been replicated yet. We have only one replica of them. 2013/1/22 Denis Bazhenov > Can you explain in more details why is that? We have in-house replication > for Lucene/3.6 index and use default IndexWriter settings. All works fine > except sometimes (just after optimization, in fact) index could not be > opened (segment file is missing on FS). We tolerate this issue by > replicating index one more time in case of failure. I guess it's somehow > related to the discussed issue. > > On Jan 19, 2013, at 5:16 AM, Michael McCandless > wrote: > > > You must also use only a single indexing thread. > > > > And you must use SerialMergeScheduler. > > > > If you do that, I think it will be deterministic. > > > > But don't rely on this ... this is runtime behavior and can suddenly > > change between releases ... > > > > Mike McCandless > > > > http://blog.mikemccandless.com > > > > On Fri, Jan 18, 2013 at 10:39 AM, Apostolis Xekoukoulotakis > > wrote: > >> I want to replicate an index from multiple replicas at the same time. > >> > >> Those replicas have been given the same documents and at the same order. > >> > >> Will the files be the same across all replicas? > >> > >> > >> > >> -- > >> > >> > >> Sincerely yours, > >> > >> Apostolis Xekoukoulotakis > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org > > For additional commands, e-mail: java-user-help@lucene.apache.org > > > > --- > Denis Bazhenov > > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org > For additional commands, e-mail: java-user-help@lucene.apache.org > > -- Sincerely yours, Apostolis Xekoukoulotakis --f46d044306065f40c004d3df6ec4--