You need to provide a "snitch" and define a rule appropriately. This is a variant of "rack awareness".
Solr considers two JVMs running on the same physical host as completely separate Solr instances, so to get replicas on different hosts you need a snitch etc. Best, Erick On Sun, Sep 2, 2018 at 4:39 PM Wei <weiwan...@gmail.com> wrote: > > Hi, > > In rule based replica placement, how to ensure there are no more than one > replica for any shard on the same host? In the documentation there is an > example rule > > shard:*,replica:<2,node:* > > Does 'node' refer to solr instance or actual physical host? Is there an > example for defining the physical host? > > Thanks, > Wei