简体   繁体   中英

Restarting solr without restarting whole tomcat service

Can we restart solr instance without restarting tomcat. I'm new to solr and I'm using tomcat7 on ubuntu 12.04LTS and solr 4.7

You can restart a Solr application (or any other Java application) deployed in Tomcat from the Tomcat Manager GUI ( http://<hostname>:<port>/manager/html ). Just click "Stop" and then "Start" to restart the solr application. Of course this requires enabling the use of the manager-GUI in the tomcat-users.xml

Another option could be to rename the context file. If you have deployed your Solr application with a context file in conf\\Catalina\\localhost you can rename this file (which will undeploy the application) and then rename the file back to the original name. This isn't so convenient, but is a workaround if you are in unable to access the Tomcat Manager GUI for security reasons.

Solr has the feature of reloading core. This means that you can reload the new configurations and schema files with ZERO down time. Solr will start loading the new core, and continue to serve requests from the old core until the new core is completely loaded.

You can reload the core using this URL:

http://localhost:8983/solr/admin/cores?action=RELOAD&core=core0

look here: https://wiki.apache.org/solr/CoreAdmin#RELOAD

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM