First, you use zookeeper to support your shards and leaders / cues. Therefore, if you want to have one fragment with two instances and another fragment with one leader, you will have to change your command as: 1) provide -DnumShards = 2 so that zookeeper knows that you need two fragments 2) specify the -DzkHost parameter for this first instance of solr.
java -Dbootstrap_confdir=solr/myApp/conf -Dcollection.configName=myConfig -DzkRun -DnumShards=2 -DzkHost=** -jar start.jar
, , shard2 .
, shard1 ( ), shard2 i.e leader
. .
Explanation
3 ! , solrCloud, zookeeper. :
1) solr- zookeeper, 1 solr cloud shard1
2) solr zookeeper..., DnumShards = 2, Zookeeper , 1 , shard2 . 1 .
3) 3- zookeeper, zookeeper , 2 , shard1 .
--- > shard1 --- > 1, server3
--->shard2--->server2