On 1/17/2021 11:12 PM, Doss wrote:
Thanks Michael Gibney , Shawn Heisey for pointing in the right direction.
1. Will there be any performance degrade if we use shards.preference?
2. How about leader election if we decided to use NRT + PULL ? TLOG has the
advantage of participating in leader election correct?
3. NRT + TLOG is there any parameter which can reduce the TLOG replication
time
I have no idea what kind of performance degradation you might expect
from using shards.preference. I wouldn't expect any, but I do not know
enough details about your environment to comment.
A TLOG replica that is elected leader functions exactly like NRT. TLOG
replicas that are not leaders replicate the transaction log, which makes
them capable of becoming leader.
PULL and TLOG non-leaders do not index. They use the old replication
feature, copying exact segment data from the leader.
If you want SolrCloud to emulate the old master/slave paradigm, my
recommendation would be to create two TLOG replicas per shard and make
the rest PULL. Then use shards.preference on queries to prefer PULL
replicas. The PULL replicas can never become leader, so you can be sure
that they will never do any indexing.
Thanks,
Shawn