lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Miller <>
Subject Re: Replicating from the correct collections in SolrCloud on solr start
Date Mon, 09 Dec 2013 21:38:33 GMT
This is currently as designed / expected.

The reason that collection is replicated is because it's configured by
default in a default Solr install.

When you use the collections API, it only takes into account the current

Eventually, there will be a mode where the Overseer will create/remove
SolrCore's based on the replicationFactor, etc as you add and remove nodes,
but that is not yet supported.

If you add a node after the fact and want a replica on it, you have to
preconfigure the SolrCore as is done with collection1 before starting the
node, or use the Core Admin API to add the new SolrCore and make sure it's
collection param matches the collection you want to add it too and the
shard param matches the shard you want to add it to.

On Mon, Dec 9, 2013 at 12:40 PM, cwhi <> wrote:

> I have a Solr configuration that I am trying to replicate on several
> machines
> as part of a package installation.  I have a cluster of machines that will
> run the SolrCloud, with 3 machines in the cluster running a zookeeper
> ensemble.  As part of the installation of each machine, Solr is started
> with
> the desired configuration uploaded (java
> -Dbootstrap_confdir=./solr/collection1/conf -Dcollection.configName=myconf
> -DzkHost=ipaddress1:2181,ipaddress2:2181,ipaddress3:2181 -jar start.jar).
> My problem is that when I add a new machine to my SolrCloud cluster, I
> expect it to replicate data from the collections I have in SolrCloud.  This
> doesn't appear to be happening.  Instead, each new machine just replicates
> the default collection1 collection.  I'd added the collection in question
> with this command:
> http://localhost:8983/solr/admin/collections?action=CREATE&name=SolrCloudTest&numShards=1&replicationFactor=2&collection.configName=myconf
> So my question is simple: Why is it that when I start a new Solr instance
> on
> the same zookeeper ensemble, it does not replicate the data from the
> SolrCloudTest collection, and instead only replicates collection1?
> --
> View this message in context:
> Sent from the Solr - User mailing list archive at

- Mark

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