Works like a charm. Thanks very much. cheers Y.
----Message d'origine---- >Date: Mon, 1 Oct 2007 21:55:30 +1000 >De: climbingrose >A: solr-user@lucene.apache.org >Sujet: Re: Solr replication > boundary="----=_Part_10345_13696775.1191239730731" > >1)On solr.master: >+Edit scripts.conf: >solr_hostname=localhost >solr_port=8983 >rsyncd_port=18983 >+Enable and start rsync: >rsyncd-enable; rsyncd-start >+Run snapshooter: >snapshooter >After running this, you should be able to see a new folder named snapshot.* >in data/index folder. >You can can solrconfig.xml to trigger snapshooter after a commit or >optimise. > >2) On slave: >+Edit scripts.conf: >solr_hostname=solr.master >solr_port=8986 >rsyncd_port=18986 >data_dir= >webapp_name=solr >master_host=localhost >master_data_dir=$MASTER_SOLR_HOME/data/ >master_status_dir=$MASTER_SOLR_HOME/logs/clients/ >+Run snappuller: >snappuller -P 18983 >+Run snapinstaller: >snapinstaller > >You should setup crontab to run snappuller and snapinstaller periodically. > > > >On 10/1/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: >> >> Hi ! >> >> I'm really new to Solr ! >> >> Could anybody please explain me with a short example how I can setup a >> simple Solr replication with 3 machines (a master node and 2 slaves) ? >> >> This is my conf: >> >> * master (linux 2.6.20) : >> - Hostname "solr.master" with IP "192.168.1.1" >> * 2 slaves (linux 2.6.20) : >> - Hostname "solr.slave1" with IP "192.168.1.2" >> - Hostname "solr.slave2" with IP "192.168.1.3" >> >> N.B: sorry if the question was already asked before, but I could't find >> anything better than the "CollectionDistribution" on the Wiki. >> >> Regards >> Y. >> >> > > >-- >Regards, > >Cuong Hoang > >