On Dec 14, 2007 7:00 AM, Dilip.TS <[EMAIL PROTECTED]> wrote:

> Hi,
> I have the following requirement for SOLR Collection Distribution using
> Embedded Solr with the Jetty server:
>
> I have different data folders for multiple instances of SOLR within the
> Same
> application.
> Im using the same SOLR_HOME with a single bin and conf folder.
>
> My query is:
> 1)Is is possible to have the same SOLR_HOME for multiple solr instances
> and
> still be able to
>  achieve Solr Distribution?
>  (As i understand that we need to have differnet rsync port for different
> solr instances)


Yes, solr distribution will work for multiple solr instances even if  they
all use the same SOLR_HOME.
All the distribution scripts have a command line argument for specifying the
data directory.


>
> 2)Can i get some more information about how to start this rsyncd daemon
> and
>  which is the best way of doing it i.e. to start during system reboot or
> doing it manually?


Please note that the rsyncd
-CollectionDistributionScripts#head-1e6cdce516ecf1eb31bffceaccf2abeb72bdce81

So it is best to configure the master server to run the rsyncd-start script
at system boot time.  If the rsync daemon has for some reasons been
disabled, it will not be started automatically at system reboot even if it
is configured to do so.  If rsyncd is started manually, then one will have
to remember to start it every time the master server is rebooted.


>
> 3)Let me know if my understanding is correct. We require 1 Master Server
> and
> a minimum of 1 slave server.
>  The master server and the slave server cannot be running on the same
> machine. Am i right?
>
>  In the case of the SOLR Distribution, if the SOLR server acts as the
> Master server
>  then how about this slave server ? Is it the Application server which
> calls the Master SOLR Server
>  acts as slave server?


Both the master and slave are SOLR servers.  Typically they are on different
machines.
It doesn't make sense (at least not to me) to have both of them on the same
machine.


>
> 4)I observe the file scripts.conf for master server:
>    solr_port=8983
>    rsyncd_port=18983
>
>    +Enable and start rsync:
>         rsyncd-enable; rsyncd-start
>    +Run snapshooter:
>         snapshooter
>
>    Just to confirm is it mandatory that the solr master server should have
> the solr_port as 8983 only?



It does not to be 8983.   That's just an example.


>
>
> 5) How do we enable and start rsync? The link to
> SolrCollectionDistributionScripts mentions about
>   installing rsyncd daemon either during system boot time or by manually.
>   Which method is more preferrable?
>   How do we achieve this as iam not clear on this?


>
> 6) How do we setup crontab to run snappuller and snapinstaller
> periodically?



How to start rsyncd  at system boot time and setup crontab to run snappuller
and snapinstaller depends on the OS that Solr is running on.


>
>
>
> Regards,
> Dilip TS
> Starmark Services Pvt. Ltd.
>
>

Reply via email to