Hi,

I need some help please.

I am running Solr Cloud 4.10.4, with ensemble ZooKeeper.

Server A running Solr Cloud + ZooKeeper
Server B running Solr Cloud + ZooKeeper
Server C running ZooKeeper only.

For some reason Server B is crashed and all data lost. I have cleaned it up, 
deleted all existing collection index files and start up the Solr service fresh.

If a Collection that has only 1 shard, Server B has managed to create and 
replicate from Server A:
       SolrCore [collection1] Solr index directory 
'xxxxxxxx/collection1/data/index' doesn't exist. Creating new index...

If a Collection that has 2 shards, Server B doesn't seem to be doing anything. 
The Collection was configured 2 shards and 2 replication originally.

Here is the Clusterstate.json from ZooKeeper.

Collection1 has only 1 shard.
Collection cr_dev has 2 shards, one is on server A, one was on server B.
Server A: 10.1.11.70
Server B: 10.2.11.244

Is it because "autoCreated" is missing from collection cr_dev? How do I set 
this? API call?

"collection1":{
    "shards":{"shard1":{
        "range":"80000000-7fffffff",
        "state":"active",
        "replicas":{
          "core_node1":{
            "state":"active",
            "core":"collection1",
            "node_name":"10.1.11.70:8983_solr",
            "base_url":"http://10.1.11.70:8983/solr";,
            "leader":"true"},
          "core_node2":{
            "state":"active",
            "core":"collection1",
            "node_name":"10.2.11.244:8983_solr",
            "base_url":"http://10.2.11.244:8983/solr"}}}},
    "maxShardsPerNode":"1",
    "router":{"name":"compositeId"},
    "replicationFactor":"1",
    "autoAddReplicas":"false",
    "autoCreated":"true"},
  "cr_dev":{
    "shards":{
      "shard1":{
        "range":"80000000-ffffffff",
        "state":"active",
        "replicas":{
          "core_node1":{
            "state":"active",
            "core":"cr_dev_shard1_replica1",
            "node_name":"10.1.11.70:8983_solr",
            "base_url":"http://10.1.11.70:8983/solr";,
            "leader":"true"},
          "core_node4":{
            "state":"down",
            "core":"cr_dev_shard1_replica2",
            "node_name":"10.2.11.244:8983_solr",
            "base_url":"http://10.2.11.244:8983/solr"}}},
      "shard2":{
        "range":"0-7fffffff",
        "state":"active",
        "replicas":{
          "core_node2":{
            "state":"active",
            "core":"cr_dev_shard2_replica1",
            "node_name":"10.1.11.70:8983_solr",
            "base_url":"http://10.1.11.70:8983/solr";,
            "leader":"true"},
          "core_node3":{
            "state":"down",
            "core":"cr_dev_shard2_replica2",
            "node_name":"10.2.11.244:8983_solr",
            "base_url":"http://10.2.11.244:8983/solr"}}}},
    "maxShardsPerNode":"2",
    "router":{"name":"compositeId"},
    "replicationFactor":"2",
    "autoAddReplicas":"false"},

Many thanks,
Tim


[tour de france 2 july 8:30pm]<http://www.sbs.com.au/cyclingcentral/>

Reply via email to