Load cores without restarting/reloading Solr

classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|

Load cores without restarting/reloading Solr

Andrew McCombe
Hi

We have a few cores set up for separate sites and one of these is in use
constantly.  When I add a new core I can currently copying one of the other
cores and renaming it, changing the conf etc and then reloading Solr via the
tomcat manager.  However, if something goes wrong then the other cores stop
working until I have resolved the problem.

My questions are:

1) Is using a separate core for different sites the correct method?

2) Is there a way of creating a core and starting it without having to
reload Solr or restart tomcat?

3) I've looked at the Solr Cores CREATE handler but from what I gather, I
need to create the core folder and edit the solr.xml first before loading
the core with action=CREATE. Is that correct?

Regards
Andrew
Reply | Threaded
Open this post in threaded view
|

Re: Load cores without restarting/reloading Solr

Peter
Hi Andrew,

I didn't correctly understand what you are trying to do with 'copying'?
Just use one core as a template or use it to replicate data?

You can reload only one application via:
http://localhost/manager/html/reload?path=/yourapp
(if you do this often you need to increase the PermGen space)

You can replicate a core:
http://wiki.apache.org/solr/SolrReplication

Regards,
Peter.

> Hi
>
> We have a few cores set up for separate sites and one of these is in use
> constantly.  When I add a new core I can currently copying one of the other
> cores and renaming it, changing the conf etc and then reloading Solr via the
> tomcat manager.  However, if something goes wrong then the other cores stop
> working until I have resolved the problem.
>
> My questions are:
>
> 1) Is using a separate core for different sites the correct method?
>
> 2) Is there a way of creating a core and starting it without having to
> reload Solr or restart tomcat?
>
> 3) I've looked at the Solr Cores CREATE handler but from what I gather, I
> need to create the core folder and edit the solr.xml first before loading
> the core with action=CREATE. Is that correct?
>
> Regards
> Andrew
>
>  


--
http://karussell.wordpress.com/

Reply | Threaded
Open this post in threaded view
|

Re: Load cores without restarting/reloading Solr

Andrew McCombe
Hi

Sorry, it wasn't very clear was it?

Yes, I use a 'template' core that isn't used and create a copy of this on the command line. I then edit the newcore/conf/solrconfig.xml and set the data path, add data-import sections etc and then I edit the solr.home/solr.xml and add the core name & directory to that.  I then go to the Tomcat manager/html and reload Solr.

The problem I get is that if I have broken something in the new core Solr (correctly) doesn't reload and the other cores aren't then working.

I don't need replication just yet but I will be looking into that eventually.

Regards
Andrew


On 20 July 2010 10:32, Peter Karich <[hidden email]> wrote:
Hi Andrew,

I didn't correctly understand what you are trying to do with 'copying'?
Just use one core as a template or use it to replicate data?

You can reload only one application via:
http://localhost/manager/html/reload?path=/yourapp
(if you do this often you need to increase the PermGen space)

You can replicate a core:
http://wiki.apache.org/solr/SolrReplication

Regards,
Peter.

> Hi
>
> We have a few cores set up for separate sites and one of these is in use
> constantly.  When I add a new core I can currently copying one of the other
> cores and renaming it, changing the conf etc and then reloading Solr via the
> tomcat manager.  However, if something goes wrong then the other cores stop
> working until I have resolved the problem.
>
> My questions are:
>
> 1) Is using a separate core for different sites the correct method?
>
> 2) Is there a way of creating a core and starting it without having to
> reload Solr or restart tomcat?
>
> 3) I've looked at the Solr Cores CREATE handler but from what I gather, I
> need to create the core folder and edit the solr.xml first before loading
> the core with action=CREATE. Is that correct?
>
> Regards
> Andrew
>
>


--
http://karussell.wordpress.com/


Reply | Threaded
Open this post in threaded view
|

Re: Load cores without restarting/reloading Solr

Peter
Hi Andrew,

the whole tomcat shouldn't fail on restart if only one core fails.
We are using the setup described here:
http://wiki.apache.org/solr/SolrTomcat

With the help of several different Tomcat Context xml files (under
conf/Catalina/localhost/) the cores should be independent webapps:
A different data directory (+config) and even a different solr version
is possible.

Or are you using the same setup?

Regards,
Peter.

> Hi
>
> Sorry, it wasn't very clear was it? [?]
>
> Yes, I use a 'template' core that isn't used and create a copy of this on
> the command line. I then edit the newcore/conf/solrconfig.xml and set the
> data path, add data-import sections etc and then I edit the
> solr.home/solr.xml and add the core name & directory to that.  I then go to
> the Tomcat manager/html and reload Solr.
>
> The problem I get is that if I have broken something in the new core Solr
> (correctly) doesn't reload and the other cores aren't then working.
>
> I don't need replication just yet but I will be looking into that
> eventually.
>
> Regards
> Andrew
>
>
> On 20 July 2010 10:32, Peter Karich <[hidden email]> wrote:
>
>  
>> Hi Andrew,
>>
>> I didn't correctly understand what you are trying to do with 'copying'?
>> Just use one core as a template or use it to replicate data?
>>
>> You can reload only one application via:
>> http://localhost/manager/html/reload?path=/yourapp
>> (if you do this often you need to increase the PermGen space)
>>
>> You can replicate a core:
>> http://wiki.apache.org/solr/SolrReplication
>>
>> Regards,
>> Peter.
>>
>>    
>>> Hi
>>>
>>> We have a few cores set up for separate sites and one of these is in use
>>> constantly.  When I add a new core I can currently copying one of the
>>>      
>> other
>>    
>>> cores and renaming it, changing the conf etc and then reloading Solr via
>>>      
>> the
>>    
>>> tomcat manager.  However, if something goes wrong then the other cores
>>>      
>> stop
>>    
>>> working until I have resolved the problem.
>>>
>>> My questions are:
>>>
>>> 1) Is using a separate core for different sites the correct method?
>>>
>>> 2) Is there a way of creating a core and starting it without having to
>>> reload Solr or restart tomcat?
>>>
>>> 3) I've looked at the Solr Cores CREATE handler but from what I gather, I
>>> need to create the core folder and edit the solr.xml first before loading
>>> the core with action=CREATE. Is that correct?
>>>
>>> Regards
>>> Andrew
>>>
>>>
>>>      

Reply | Threaded
Open this post in threaded view
|

Re: Load cores without restarting/reloading Solr

Andrew McCombe
Hi Peter

We are using the packaged Ubuntu Server  (10.04 LTS) versions of Tomcat6 and
Solr1.4 and running a single instance of Solr with multiple cores.

Regards
Andrew

On 20 July 2010 19:47, Peter Karich <[hidden email]> wrote:

> Hi Andrew,
>
> the whole tomcat shouldn't fail on restart if only one core fails.
> We are using the setup described here:
> http://wiki.apache.org/solr/SolrTomcat
>
> With the help of several different Tomcat Context xml files (under
> conf/Catalina/localhost/) the cores should be independent webapps:
> A different data directory (+config) and even a different solr version
> is possible.
>
> Or are you using the same setup?
>
> Regards,
> Peter.
>
> > Hi
> >
> > Sorry, it wasn't very clear was it? [?]
> >
> > Yes, I use a 'template' core that isn't used and create a copy of this on
> > the command line. I then edit the newcore/conf/solrconfig.xml and set the
> > data path, add data-import sections etc and then I edit the
> > solr.home/solr.xml and add the core name & directory to that.  I then go
> to
> > the Tomcat manager/html and reload Solr.
> >
> > The problem I get is that if I have broken something in the new core Solr
> > (correctly) doesn't reload and the other cores aren't then working.
> >
> > I don't need replication just yet but I will be looking into that
> > eventually.
> >
> > Regards
> > Andrew
> >
> >
> > On 20 July 2010 10:32, Peter Karich <[hidden email]> wrote:
> >
> >
> >> Hi Andrew,
> >>
> >> I didn't correctly understand what you are trying to do with 'copying'?
> >> Just use one core as a template or use it to replicate data?
> >>
> >> You can reload only one application via:
> >> http://localhost/manager/html/reload?path=/yourapp
> >> (if you do this often you need to increase the PermGen space)
> >>
> >> You can replicate a core:
> >> http://wiki.apache.org/solr/SolrReplication
> >>
> >> Regards,
> >> Peter.
> >>
> >>
> >>> Hi
> >>>
> >>> We have a few cores set up for separate sites and one of these is in
> use
> >>> constantly.  When I add a new core I can currently copying one of the
> >>>
> >> other
> >>
> >>> cores and renaming it, changing the conf etc and then reloading Solr
> via
> >>>
> >> the
> >>
> >>> tomcat manager.  However, if something goes wrong then the other cores
> >>>
> >> stop
> >>
> >>> working until I have resolved the problem.
> >>>
> >>> My questions are:
> >>>
> >>> 1) Is using a separate core for different sites the correct method?
> >>>
> >>> 2) Is there a way of creating a core and starting it without having to
> >>> reload Solr or restart tomcat?
> >>>
> >>> 3) I've looked at the Solr Cores CREATE handler but from what I gather,
> I
> >>> need to create the core folder and edit the solr.xml first before
> loading
> >>> the core with action=CREATE. Is that correct?
> >>>
> >>> Regards
> >>> Andrew
> >>>
> >>>
> >>>
>
>
Reply | Threaded
Open this post in threaded view
|

Re: Load cores without restarting/reloading Solr

Karthik K-2
Can some one please answer this.

 Is there a way of creating/adding a core and starting it without having to
reload Solr ?
Reply | Threaded
Open this post in threaded view
|

RE: Re: Load cores without restarting/reloading Solr

Markus Jelsma
http://wiki.apache.org/solr/CoreAdmin
 
-----Original message-----
From: Karthik K <[hidden email]>
Sent: Thu 05-08-2010 12:00
To: [hidden email];
Subject: Re: Load cores without restarting/reloading Solr

Can some one please answer this.

Is there a way of creating/adding a core and starting it without having to
reload Solr ?
Reply | Threaded
Open this post in threaded view
|

Re: Load cores without restarting/reloading Solr

Mark Miller-3
In reply to this post by Karthik K-2
On 8/5/10 5:59 AM, Karthik K wrote:
> Can some one please answer this.
>
>  Is there a way of creating/adding a core and starting it without having to
> reload Solr ?
>

Yes, see http://wiki.apache.org/solr/CoreAdmin

- Mark
lucidimagination.com