My assumption was that the strength of SolrCloud is the distribution
of leader and replica within the Cloud and make the Cloud somewhat failsafe.
But after setting up SolrCloud with a collection I have both, leader and
replica, on the same shard. And this should be failsafe?
o.a.s.h.a.CollectionsHandler Invoked Collection Action :create with params
replicationFactor=2&routerName=compositeId&collection.configName=boss&
maxShardsPerNode=1&name=boss&router.name=compositeId&action=CREATE&numShards=5
boss ------ shard1 ----- server2:7574
| |-- server2:8983 (leader)
|
--- shard2 ----- server1:8983
| |-- server5:7575 (leader)
|
--- shard3 ----- server3:8983 (leader)
| |-- server4:8983
|
--- shard4 ----- server1:7574 (leader)
| |-- server4:7574
|
--- shard5 ----- server3:7574 (leader)
|-- server5:8983
>From my point of view, if server2 is going to crash then shard1 will disappear
>and
1/5th of the index is missing.
What is your opinion?
Regards
Bernd