Answer the question
In order to leave comments, you need to log in
How to solve lag issue when switching master in MongoDB replica?
In the case of switching the master to another instance, there is a small lag of 1-3 seconds for the "rise" of the new master. At this moment, it is impossible to work with this replica. And if reading can somehow be made to work (forcibly reading always from the slave), then writing is really bad.
What are some ways to keep the application running while switching the master?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question