I’m sorry that you found that a bit offensive. I’m being a bit sarcastic to REALLY explain why it doesn’t make sense and get the point across. If you read my entire post, the answer and justification is in it.
I explained in my answer why it’s a bad idea and I also explained the solution: Single Node Replica Set.
Transactions, Change Streams and a few other features in MongoDB rely on the special oplog collection that only exists in Replica Set setups. BUT you can set up a Single Node Replica Set that only contains a single Primary node and all the features will work just as good as in a 7 nodes Replica Set.
So again, I reiterate:
It’s a nonsense to run 3 members of the same RS on the same machine.
Use a Single Node RS instead. Same features but it’s using 3X less ressources.
1 Like