Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

SolrCloud shard replication is useful for customers that either want data resiliency, and/or fail-over in a multi-server environment. 

After collection has been created


  1. Increase the maximum number of shards per node (if needed). This example increases the max shards per node to 6:
    1. http://localhost:8983/solr/admin/collections?action=MODIFYCOLLECTION&collection=ViaWorksCloud&maxShardsPerNode=6
  2. Browse to Solr Admin > Collections
  3. Click the ViaWorksCloud collection
  4. For each shard in the right column, click the shard to expand it.
  5. Click Add Replica
  6. From the Node drop down, choose which node the replica should be stored on. For data resiliency and fail-over protection, it's best to choose a remote node.
  7. Click Create Replica
  8. Do this for each shard to replicate the entire collection


Alternatively, the replicas can be created using the Solr API:

  1. For each shard, run a ADDREPLICA command:
    1. http://localhost:8983/solr/admin/collections?action=ADDREPLICA&collection=ViaWorksCloud&shard=shardX  (where shardX is shard1, shard2, shard3 ...)
    2. To specify which node the replicated shard is created on, add the &node= parameter and the IP:port_solr of the node
      1. eg: http://localhost:8983/solr/admin/collections?action=ADDREPLICA&collection=ViaWorksCloud&shard=shard1&node=10.2.1.105:8983_solr 


Search and indexing performance will be degraded while the shards are replicated. How long this operation takes depends on how much data you have.

  • No labels