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 bbi123 <bb...@gmail.com> on 2014/03/04 21:44:42 UTC

SOLR 4.2 - Restart vs Reload

I am currently using SOLR 4.2 (non cloud mode). I see that most of the
changes made to the config files (solrconfig.xml, schema.xml, elevate.xml,
stopwords.txt etc..) gets updated when reloading the core. 

Is there any particular change (in any of the config files) requires a
restart instead of reload for the changes to be reflected?

I am trying to come up with an automated deployment process which will just
do reload (instead of restart) after the files are deployed to corresponding
folders and I want to make sure that I don't miss anything.



--
View this message in context: http://lucene.472066.n3.nabble.com/SOLR-4-2-Restart-vs-Reload-tp4121203.html
Sent from the Solr - User mailing list archive at Nabble.com.

Re: SOLR 4.2 - Restart vs Reload

Posted by Shawn Heisey <so...@elyograg.org>.
On 3/4/2014 1:44 PM, bbi123 wrote:
> I am currently using SOLR 4.2 (non cloud mode). I see that most of the
> changes made to the config files (solrconfig.xml, schema.xml, elevate.xml,
> stopwords.txt etc..) gets updated when reloading the core.
>
> Is there any particular change (in any of the config files) requires a
> restart instead of reload for the changes to be reflected?
>
> I am trying to come up with an automated deployment process which will just
> do reload (instead of restart) after the files are deployed to corresponding
> folders and I want to make sure that I don't miss anything.

I would guess that if you are changing things like what jars you want to 
load, you have to restart.  I don't know whether Solr's resource loader 
can cope with lib changes on a reload.  For myself, I would plan on a 
restart even if it could deal with it.

Just about anything else that people normally tweak when fine-tuning 
their config is probably fine with a core reload.Most schema changes do 
require a reindex in addition to the reload/restart.  I recall that I 
once came across a config change that required a reindex, but I can't 
remember what it is now. It's sensible to do a full restart and reindex 
after you're all done with tweaking.

Some servlet containers support restarting entire web applications 
without shutting down the container.  I've heard that this is prone to 
memory leaks, and the problems with leaks are not from Solr, they're 
inherent in the restart mechanism.

Thanks,
Shawn


Re: SOLR 4.2 - Restart vs Reload

Posted by Gora Mohanty <go...@mimirtech.com>.
On 5 March 2014 02:14, bbi123 <bb...@gmail.com> wrote:
> I am currently using SOLR 4.2 (non cloud mode). I see that most of the
> changes made to the config files (solrconfig.xml, schema.xml, elevate.xml,
> stopwords.txt etc..) gets updated when reloading the core.
>
> Is there any particular change (in any of the config files) requires a
> restart instead of reload for the changes to be reflected?
>
> I am trying to come up with an automated deployment process which will just
> do reload (instead of restart) after the files are deployed to corresponding
> folders and I want to make sure that I don't miss anything.

Surely that depends on the Java container that you are using?
Otherwise, could you explain further?

Regards,
Gora