Sync from non-primary

Hello everyone,

I am facing an issue where a secondary member of a 5-node replica-set always elects primary as a sync-source, having an specialized internal setup, this is not fit for our environment, and I was wondering if I can manaully setup a mechanism that will force sync from a non-primary member (the member ofcourse if eligible to be a sync source). We are using 4.2 version of MongoDB

Thanks everyone!

I’ve found out the solution to my problem would be initialSyncSourceReadPreference .
“Starting in MongoDB 4.4, you can specify the preferred initial sync source using the initialSyncSourceReadPreference parameter. This parameter can only be specified when starting the mongod”

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.