Hi Rakesh,

Solr ships with a set of collection distribution scripts (rsync based) which
can be used to setup master-slave replication. I believe most people use
them for transferring index from master to slaves and use separate local
filesystems on their servers.

Take a look at http://wiki.apache.org/solr/CollectionDistribution

On Wed, Jul 30, 2008 at 3:10 AM, Rakesh Godhani <[EMAIL PROTECTED]> wrote:

> After Matthew's comment I was thinking about putting them both behind a
> load
> balancer, with the LB directing all traffic to one until it fails and then
> kick over to the other one.


If both masters use the same index on the SAN then this may not work because
if a failure happens during indexing then the other master will try to open
an IndexWriter on the shared index and may fail with LockObtainedException
because the other master will have already obtained a lock on it. Note that
lock is only obtained by masters and not by slaves. Probably someone who
knows more about this part can confirm.

>
>
> In your architectures I'm guessing the masters share the same physical
> index, but do the slaves share the same index as the masters or do you use
> rsync or some other mechanism to distribute copies.
>

If you want to use a SAN



-- 
Regards,
Shalin Shekhar Mangar.

Reply via email to