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 davers <db...@improvementdirect.com> on 2012/12/20 22:40:53 UTC
Adding a new core to SolrCloud without affecting the initial core
Once I setup solr cloud... can I add a new core without taking down the
cloud?
For instance if I currently have one core defined in my solr.xml
<cores adminPath="/admin/cores" defaultCoreName="productindex"
host="${host:solr-sa-2.sys.id.build.com}" hostPort="${jetty.port:8080}"
hostContext="${hostContext:apache-solr-4.0.0}"
zkClientTimeout="${zkClientTimeout:15000}">
<core name="productindex" instanceDir="productindex" />
</cores>
</solr>
But I want to add a new core to my cloud
<cores adminPath="/admin/cores" defaultCoreName="productindex"
host="${host:solr-sa-2.sys.id.build.com}" hostPort="${jetty.port:8080}"
hostContext="${hostContext:apache-solr-4.0.0}"
zkClientTimeout="${zkClientTimeout:15000}">
<core name="productindex" instanceDir="productindex" />
<core name="newCore" instanceDir="newCore" />
</cores>
</solr>
I would hope that this process would work but correct me if i'm wrong. I
want to avoid any downtime of my original core while adding the new core.
1. I would first update solr.xml on all of the shard servers an add the new
core directory including all configs
2. I would then restart the first server and rebootstrap.
3. I would then restart every shard server one at a time
Would this method achieve adding a new core without any downtime of the
initial core?
--
View this message in context: http://lucene.472066.n3.nabble.com/Adding-a-new-core-to-SolrCloud-without-affecting-the-initial-core-tp4028408.html
Sent from the Solr - User mailing list archive at Nabble.com.