Hi Nicolas - Welcome to the community
Just curious for the use case here for a replica set with 2 members? As per the Operations Checklist documentation regarding replication:
- Ensure that your replica set contains an odd number of voting members.
I would also highly recommend going over the following post into a similar scenario (with the exception of an arbiter(s) and why you should not use them as per stennie’s comment)
Regards,
Jason