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

Reply via email to