lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrew McCombe <eupe...@gmail.com>
Subject Re: Load cores without restarting/reloading Solr
Date Wed, 21 Jul 2010 13:24:51 GMT
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 <peathal@yahoo.de> 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 <peathal@yahoo.de> 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
> >>>
> >>>
> >>>
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message