Return-Path: Delivered-To: apmail-lucene-solr-commits-archive@minotaur.apache.org Received: (qmail 64483 invoked from network); 10 Aug 2009 11:05:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 10 Aug 2009 11:05:23 -0000 Received: (qmail 92410 invoked by uid 500); 10 Aug 2009 11:05:30 -0000 Delivered-To: apmail-lucene-solr-commits-archive@lucene.apache.org Received: (qmail 92325 invoked by uid 500); 10 Aug 2009 11:05:30 -0000 Mailing-List: contact solr-commits-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: solr-dev@lucene.apache.org Delivered-To: mailing list solr-commits@lucene.apache.org Received: (qmail 92316 invoked by uid 99); 10 Aug 2009 11:05:29 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Aug 2009 11:05:29 +0000 X-ASF-Spam-Status: No, hits=-1998.8 required=10.0 tests=ALL_TRUSTED,FS_REPLICA X-Spam-Check-By: apache.org Received: from [140.211.11.130] (HELO eos.apache.org) (140.211.11.130) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Aug 2009 11:05:21 +0000 Received: from eos.apache.org (localhost [127.0.0.1]) by eos.apache.org (Postfix) with ESMTP id 1D4F1118BC for ; Mon, 10 Aug 2009 11:05:01 +0000 (GMT) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Apache Wiki To: solr-commits@lucene.apache.org Date: Mon, 10 Aug 2009 11:05:01 -0000 Message-ID: <20090810110501.22779.39734@eos.apache.org> Subject: [Solr Wiki] Update of "SolrReplication" by ShalinMangar X-Virus-Checked: Checked by ClamAV on apache.org Dear Wiki user, You have subscribed to a wiki page or wiki category on "Solr Wiki" for change notification. The following page has been changed by ShalinMangar: http://wiki.apache.org/solr/SolrReplication The comment on the change is: Added example for repeater ------------------------------------------------------------------------------ ["Solr1.4"] + + [[TableOfContents]] = Features = * Replication without requiring external scripts @@ -16, +18 @@ The new Java-based replication feature is implemented as a !RequestHandler. Configuring replication is therefore similar to any normal !RequestHandler. - === in master: === + === Master === {{{ @@ -45, +47 @@ On the master server, the file name of the slave configuration file can be anything, as long as the name is correctly identified in the "confFiles" string; then it will be saved as whatever file name appears after the colon ':'. - === in slave: === + === Slave === {{{ @@ -83, +85 @@ === Setting up a Repeater === A master may be able to serve only so many slaves without affecting performance. Some organizations have deployed slave servers across multiple data centers. If each slave downloads the index from a remote data center, the resulting download may consume too much network bandwidth. To avoid performance degradation in cases like this, you can configure one or more slaves as repeaters. A repeater is simply a node that acts as both a master and a slave. * To configure a server as a repeater, both the master and slave configuration lists need to be present inside the !ReplicationHandler requestHandler in the solrconfig.xml file. + * Be sure to have replicateAfter 'commit' setup on repeater even if replicateAfter is set to optimize on the main master. This is because on a repeater (or any slave), only a commit is called after index is downloaded. Optimize is never called on slaves. - + Example configuration of a repeater: + {{{ + + + commit + schema.xml,stopwords.txt,synonyms.txt + + + http://master.solr.company.com:8080/solr/replication + 00:00:60 + + + }}} = Replication Dashboard = This shows the following information