What do you think of using replicaset member priority to solve this?
For example. primary at DC1 has a priority of 5 and secondaries at DC2 &
DC3 have a priority of 2.
So in the event of a network partition or DC2 / DC3 going down, primary at
DC1 would continue to be primary.
By ‘solving this’, I assumed that you are referring to the original
question on this thread. Which is, if the majority of the replica set is
inaccessible to the current primary, will the primary step down and become
Setting the priority value is suitable if you prefer that the member(s) in
one data center (i.e. DC1) be elected primary before the members in the
other data centers. As you mentioned, in the event of the primary loss, one
of the secondaries would step up temporarily until the member on DC1 is
available again and caught up. See also member priority