COLLECTION CREATE and CLUSTERSTATUS changes in SOLR 7.5.0

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

COLLECTION CREATE and CLUSTERSTATUS changes in SOLR 7.5.0

ramyogi

SOLR 7.5.0
Created collection as below:
/admin/collections?action=CREATE&name=test_collection&numShards=1&maxShardsPerNode=1&rule=replica:<2,node:*&collection.configName=test_collection_config

Created Successfully.

After that when I try to see CLUSTERSTATUS, it is  giving "replicas": {}
empty. But IN SOLR 5.3.1 it was giving the response but SOLR 7.5.0 it is
not.
Please  help out what is missing how to fix.

/solr/admin/collections?action=CLUSTERSTATUS&wt=json

{
  "responseHeader": {
    "status": 0,
    "QTime": 1
  },
  "cluster": {
    "collections": {
      "test_collection": {
        "pullReplicas": "0",
        "replicationFactor": "1",
        "shards": {
          "shard1": {
            "range": "80000000-7fffffff",
            "state": "active",
            "replicas": {}
          }
        },
        "router": {
          "name": "compositeId"
        },
        "maxShardsPerNode": "1",
        "autoAddReplicas": "false",
        "nrtReplicas": "1",
        "tlogReplicas": "0",
        "rule": [
          {
            "replica": "<2",
            "node": "*"
          }
        ],
        "znodeVersion": 6,
        "configName": "test_collection_config"
      }



--
Sent from: http://lucene.472066.n3.nabble.com/Solr-User-f472068.html
Reply | Threaded
Open this post in threaded view
|

Re: COLLECTION CREATE and CLUSTERSTATUS changes in SOLR 7.5.0

ramyogi
I found the reason,
&legacyCloud=true when I create a collection with this parameter I could
find that replicas data in CLUSTERSTATUS api request,. is there anything
wrong if I use this in SOLR 7.5.0 when create a collection ?
Please advice.



--
Sent from: http://lucene.472066.n3.nabble.com/Solr-User-f472068.html
Reply | Threaded
Open this post in threaded view
|

Re: COLLECTION CREATE and CLUSTERSTATUS changes in SOLR 7.5.0

Hendrik Haddorp
Do you have something about legacyCloud in your CLUSTERSTATUS response?
I have "properties":{"legacyCloud":"false"}
In the legacy cloud mode, also calles format 1, the state is stored in a
central clusterstate.js node in ZK, which does not scale well. In the
modern mode every collection has its own state.json node in ZK. I guess
there is something mixed up on your system. I would make sure to not use
the legacy mode.

On 11.02.2019 05:57, ramyogi wrote:

> I found the reason,
> &legacyCloud=true when I create a collection with this parameter I could
> find that replicas data in CLUSTERSTATUS api request,. is there anything
> wrong if I use this in SOLR 7.5.0 when create a collection ?
> Please advice.
>
>
>
> --
> Sent from: http://lucene.472066.n3.nabble.com/Solr-User-f472068.html