[ 
https://issues.apache.org/jira/browse/SOLR-5705?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13894650#comment-13894650
 ] 

André Cruz commented on SOLR-5705:
----------------------------------

Lets say our nodes were started by giving the following parameters to the JVM:
{code}
-DnumShards=3 -Dhost=`hostname`
{code}

Solrcloud will end up using the "host" for the node name and base_url. Now if 
we want to change it to `hostname -i`, for example, to have Solr use IPs 
instead, when this node starts it is not guaranteed to be in the same shard as 
before. Since the node name is unknown the "next" shard is picked for this node.

I would like to be able to specify the shard:
{code}
-DnumShards=3 -Dhost=`hostname` -DshardId=2
{code}


> Ability to specify the shard to which a new node will join
> ----------------------------------------------------------
>
>                 Key: SOLR-5705
>                 URL: https://issues.apache.org/jira/browse/SOLR-5705
>             Project: Solr
>          Issue Type: Wish
>          Components: SolrCloud
>    Affects Versions: 4.6
>            Reporter: André Cruz
>            Priority: Critical
>
> Currently a new solrcloud node will select the shard in a round-robin manner. 
> The ability to specify to which shard the node should be associated would be 
> very helpful. For example, if we need to change the node name, we would like 
> it to stay connected to the same shard, but it will choose a new one and we 
> can't force it to stay in the old shard.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to