Hi Isabelle,

If I understood correctly your question, you can check shard distribution 
status at admin page 
http://localhost:8983/solr/#/~cloud 

if you started solr by using command like 
$ java -Djetty.port=7574 -DzkHost=localhost:9983 -jar start.jar
( 
https://cwiki.apache.org/confluence/display/solr/Getting+Started+with+SolrCloud 
)

then the nodes are assigned with the order
1-shard leader -> 2-shard leader -> 1-shard replica -> 2-shard replica

of course, form the second time, the node’s status does not change.

Best,
Chunki


> On Nov 6, 2014, at 2:46 PM, CTO직속IsabellePhan <ip...@coupang.com> wrote:
> 
> Thanks for the advice Erick.
> 
> Would you know what the underlying logic doing the shard distribution is?
> Does it depend on the order in which each node joined the cluster or does
> the collections api logic actually checks the node host IP to ensure even
> distribution?
> 
> Best Regards,
> 
> Isabelle
> 
> 
> On Wed, Nov 5, 2014 at 3:10 PM, Erick Erickson <erickerick...@gmail.com>
> wrote:
> 
>> They should be pretty well distributed by default, but if you want to
>> take manual control, you can use the createNodeSet param on CREATE
>> (with replication factor of 1) and then ADDREPLICA with the node param
>> to put replicas for shards exactly where you want.
>> 
>> Best,
>> Erick
>> 

Reply via email to