You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by vivek sar <vi...@gmail.com> on 2009/04/19 10:33:00 UTC
Multiple Solr-instance share same solr.home
Hi,
Is it possible to have two solr instances share the same solr.home?
I've two Solr instances running on the same box and I was wondering if
I can configure them to have the same solr.home. I tried it, but looks
like the second instance overwrites the first one's value in the
solr.xml (I'm using multicore for both instances). This is just for
convenience so I don't have to manage multiple solr index directory
locations - I can have all the indexes written into the same location
and do the clean up from one place itself. If this is not supported
then it's not a big deal.
Thanks,
-vivek
Re: Multiple Solr-instance share same solr.home
Posted by Otis Gospodnetic <ot...@yahoo.com>.
I think this should work, but it surely sounds unusual... which always makes one wonder why.
Otis
--
Sematext -- http://sematext.com/ -- Lucene - Solr - Nutch
----- Original Message ----
> From: vivek sar <vi...@gmail.com>
> To: solr-user@lucene.apache.org
> Sent: Sunday, April 19, 2009 3:28:35 PM
> Subject: Re: Multiple Solr-instance share same solr.home
>
> Both Solr instances will be writing to separate indexes, but can they
> share the same solr.home? So, here is what I want,
>
> 1) solr.home = solr/multicore
> 2) There is a single solr.xml under multicore directory
> 3) Each instance would use the same solr.xml, which will have entries
> for multiple cores
> 4) Each instance will write to different core at a time - so one index
> will be written by only one writer at a time.
>
> not sure if this is a supported configuration.
>
> Thanks.
> -vivek
>
>
>
>
> On Sun, Apr 19, 2009 at 5:55 AM, Otis Gospodnetic
> wrote:
> >
> > Vivek - no, unless you want trouble - only 1 writer can write to a specific
> index at a time.
> >
> >
> > Otis --
> > Sematext -- http://sematext.com/ -- Lucene - Solr - Nutch
> >
> >
> >
> > ----- Original Message ----
> >> From: vivek sar
> >> To: solr-user@lucene.apache.org
> >> Sent: Sunday, April 19, 2009 4:33:00 AM
> >> Subject: Multiple Solr-instance share same solr.home
> >>
> >> Hi,
> >>
> >> Is it possible to have two solr instances share the same solr.home?
> >> I've two Solr instances running on the same box and I was wondering if
> >> I can configure them to have the same solr.home. I tried it, but looks
> >> like the second instance overwrites the first one's value in the
> >> solr.xml (I'm using multicore for both instances). This is just for
> >> convenience so I don't have to manage multiple solr index directory
> >> locations - I can have all the indexes written into the same location
> >> and do the clean up from one place itself. If this is not supported
> >> then it's not a big deal.
> >>
> >> Thanks,
> >> -vivek
> >
> >
Re: Multiple Solr-instance share same solr.home
Posted by Ryan McKinley <ry...@gmail.com>.
as long as you make sure there are never two applications writing to
the same index, you *should* be ok.
But tread carefully...
On Apr 19, 2009, at 3:28 PM, vivek sar wrote:
> Both Solr instances will be writing to separate indexes, but can they
> share the same solr.home? So, here is what I want,
>
> 1) solr.home = solr/multicore
> 2) There is a single solr.xml under multicore directory
> 3) Each instance would use the same solr.xml, which will have entries
> for multiple cores
> 4) Each instance will write to different core at a time - so one index
> will be written by only one writer at a time.
>
> not sure if this is a supported configuration.
>
> Thanks.
> -vivek
>
>
>
>
> On Sun, Apr 19, 2009 at 5:55 AM, Otis Gospodnetic
> <ot...@yahoo.com> wrote:
>>
>> Vivek - no, unless you want trouble - only 1 writer can write to a
>> specific index at a time.
>>
>>
>> Otis --
>> Sematext -- http://sematext.com/ -- Lucene - Solr - Nutch
>>
>>
>>
>> ----- Original Message ----
>>> From: vivek sar <vi...@gmail.com>
>>> To: solr-user@lucene.apache.org
>>> Sent: Sunday, April 19, 2009 4:33:00 AM
>>> Subject: Multiple Solr-instance share same solr.home
>>>
>>> Hi,
>>>
>>> Is it possible to have two solr instances share the same solr.home?
>>> I've two Solr instances running on the same box and I was
>>> wondering if
>>> I can configure them to have the same solr.home. I tried it, but
>>> looks
>>> like the second instance overwrites the first one's value in the
>>> solr.xml (I'm using multicore for both instances). This is just for
>>> convenience so I don't have to manage multiple solr index directory
>>> locations - I can have all the indexes written into the same
>>> location
>>> and do the clean up from one place itself. If this is not supported
>>> then it's not a big deal.
>>>
>>> Thanks,
>>> -vivek
>>
>>
Re: Multiple Solr-instance share same solr.home
Posted by vivek sar <vi...@gmail.com>.
Both Solr instances will be writing to separate indexes, but can they
share the same solr.home? So, here is what I want,
1) solr.home = solr/multicore
2) There is a single solr.xml under multicore directory
3) Each instance would use the same solr.xml, which will have entries
for multiple cores
4) Each instance will write to different core at a time - so one index
will be written by only one writer at a time.
not sure if this is a supported configuration.
Thanks.
-vivek
On Sun, Apr 19, 2009 at 5:55 AM, Otis Gospodnetic
<ot...@yahoo.com> wrote:
>
> Vivek - no, unless you want trouble - only 1 writer can write to a specific index at a time.
>
>
> Otis --
> Sematext -- http://sematext.com/ -- Lucene - Solr - Nutch
>
>
>
> ----- Original Message ----
>> From: vivek sar <vi...@gmail.com>
>> To: solr-user@lucene.apache.org
>> Sent: Sunday, April 19, 2009 4:33:00 AM
>> Subject: Multiple Solr-instance share same solr.home
>>
>> Hi,
>>
>> Is it possible to have two solr instances share the same solr.home?
>> I've two Solr instances running on the same box and I was wondering if
>> I can configure them to have the same solr.home. I tried it, but looks
>> like the second instance overwrites the first one's value in the
>> solr.xml (I'm using multicore for both instances). This is just for
>> convenience so I don't have to manage multiple solr index directory
>> locations - I can have all the indexes written into the same location
>> and do the clean up from one place itself. If this is not supported
>> then it's not a big deal.
>>
>> Thanks,
>> -vivek
>
>
Re: Multiple Solr-instance share same solr.home
Posted by Otis Gospodnetic <ot...@yahoo.com>.
Vivek - no, unless you want trouble - only 1 writer can write to a specific index at a time.
Otis --
Sematext -- http://sematext.com/ -- Lucene - Solr - Nutch
----- Original Message ----
> From: vivek sar <vi...@gmail.com>
> To: solr-user@lucene.apache.org
> Sent: Sunday, April 19, 2009 4:33:00 AM
> Subject: Multiple Solr-instance share same solr.home
>
> Hi,
>
> Is it possible to have two solr instances share the same solr.home?
> I've two Solr instances running on the same box and I was wondering if
> I can configure them to have the same solr.home. I tried it, but looks
> like the second instance overwrites the first one's value in the
> solr.xml (I'm using multicore for both instances). This is just for
> convenience so I don't have to manage multiple solr index directory
> locations - I can have all the indexes written into the same location
> and do the clean up from one place itself. If this is not supported
> then it's not a big deal.
>
> Thanks,
> -vivek