Hello, I have setup a SolrCloud 5.1 cluster consisting of 3 nodes (let's cal them host1, host2 and host3). I have started each node by specifying property -DnumShards=1. Afterwards I have created a collection with the following parameters and imported some data using DIH: http://host1:port/solr/admin/collections?action=CREATE&name=collection1&numShards=1&autoAddReplicas=true&maxShardsPerNode=1&collection.configName=myConfig
I would have expected (given that somehow the cluster size was set to 1) that the other nodes: host2 and host3 would automatically create a replica of my shard but they didn't. The only way I could create a replica on the remaining nodes was by specifying the replicationFactor while creating the collection: http://host1:port/solr/admin/collections?action=CREATE&name=collection1&numShards=1&autoAddReplicas=true&maxShardsPerNode=1&collection.configName=myConfig&replicationFactor=3&maxShardsPerNode=1 but in this case I bumped into another problem: after I have imported the data, all replicas were active. If I shut down one node, let's say host2, when I restarted it keeps staying in state recovering. I took a look on the log files and could see no error. I know for sure that I haven't added new data after I shut down the node host2 hence the replicas should still be in sync. I don't understand why it doesn't recover though ... I have waited even a day but with no change. What am I missing? Could someone explain me how works the replication mechanism? Thanks in advance,Mihaela