On 1/16/2022 7:22 PM, zhta...@163.com wrote:
The following is my cluster status. The maxShardsPerNode configuration is 1,
but I created a collection search1. Both replicas of shard1 are assigned to
192.168.52.164:8280_solr this node.
Could this be a bug?
Hard to say. Yes, it could be a bug. You haven't indicated what
version of Solr you're on. SolrCloud has been around since version 4.0
and there have been a LOT of bugs fixed over the years. Some things I
am reading in bug reports seem to indicate that maxShardsPerNode may be
broken in current versions.
One thing you could do: Create the collection with one replica, then
utilize the ADDREPLICA action (and DELETEREPLICA if necessary) on the
collections API to move things around until they are placed in the
manner you want.
Thanks,
Shawn