Dear Wiki user, You have subscribed to a wiki page or wiki category on "Solr Wiki" for change notification.
The "SolrCollectionDistributionScripts" page has been changed by HossMan: http://wiki.apache.org/solr/SolrCollectionDistributionScripts?action=diff&rev1=18&rev2=19 - /!\ :TODO: /!\ update final packaging strategy for scripts and rc script for rsyncd + This document describes the ssh/rsync based replication available since [[Solr1.1]] '''This mechanism only works on systems that support removing open hard links'''. + + + /!\ These Scripts were superseded by the [[SolrReplication|ReplicationHandler]] Java implementation of index replication that works over HTTP and was introduced in [[Solr1.4]], and are no longer actively maintained. /!\ <<TableOfContents>> All Solr collection distribution scripts and configuration files are bundled within a Solr release. + - <<BR>> - /!\ :TODO: /!\ revise pending final packaging strategy - <<BR>> All scripts reside in the directory '''solr/bin''' of each instance of Solr. Configuration files reside in the directory '''solr/conf''' of each instance of Solr. Snapshots directories are named '''snapshot.''yyyymmddHHMMSS'''''. In additional to installing a snapshot, '''snapinstaller''' will also trigger Solr to open a new Searcher after it has put the latest snapshot into place. A rsyncd daemon needs to be first enabled and then started on the master Solr server to handle collection distribution requests from the slaves. The file '''solr/logs/rsyncd-enabled''' determines if the rsyncd daemon is enabled or disabled. The scripts '''rsyncd-enable''' and '''rsyncd-disable''' should be used to enable and disable the rsyncd daemon. The script '''rsyncd-start''' and '''rsyncd-stop''' should be used to start and stop the rsyncd daemon. Configuration of the rsyncd daemon is controlled by the file '''solr/conf/rsyncd.conf''' which is generated by '''rsyncd-start''' at startup time and removed by '''rsyncd-stop''' at shutdown time. The process id of the rsyncd daemon is written into the file '''solr/logs/rsyncd.pid'''. Output of the rsyncd daemon is written into the file '''solr/logs/rsyncd.log'''. You may also want to install an init script on your system which starts the rsyncd daemon at system boot time if the rsyncd daemon has been enabled. Otherwise, you will have to manually start the rsyncd daemon after each system reboot. + - <<BR>> - /!\ :TODO: /!\ revise rc script for rsyncd - <<BR>> On the slaves all the files in the index directory are hard links to the latest snapshot. This way we can keep multiple snapshots on each slave without the need to keep multiple copies of index files that have not changed. In addition, under this design the index directory will look somewhat similar on the master and slaves. On the master, all the files in the index directory will be hard links to the lastest snapshot before any updates come in.