I Have Setup master slave replication in mongo its working fine for few month then after that suddenly replication fails.I have started again with initial sync but during sync after a specific point it will again start resync and these process going on and on and slave have not complete their initial sync.
- Anybody can ask a question
- Anybody can answer
- The best answers are voted up and rise to the top
migrated from stackoverflow.com Jul 15 '14 at 9:31
This question came from our site for professional and enthusiast programmers.
One reason could be that your oplog is too small.
On the master:
Resizing the oplog is quite easy, if this is indeed your problem. The documentation is here: http://docs.mongodb.org/manual/tutorial/change-oplog-size/