Database Administrators Stack Exchange is a question and answer site for database professionals who wish to improve their database skills and learn from others in the community. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am running a replica-set in production with slaveOk = false using mongo 2.0.7 in AWS The replication lag on one of the servers is close to 58 hours. This replication lag is sometimes decreasing ( at very slow rate ) and sometimes increasing, but overall its lag is increasing 1-2 hours per day.

  • I restarted the server, but seeing no benefit
  • The read rate is 10 times of the read rate, compared to the other secondaries.
  • I checked the logs, but nothing weird
  • The lock % is very high ( close to 100% ) only on that server( and there is no such issues with the capped collection ). Other secondaries hardly have 10-20 lock%

One more weird thing that I noted about this server ( secondary ) is that mms is showing the version to be 2.2.1 and type as 'standalone' server, which is not the case ( cross checked using db.version() and rs.status() command )

share|improve this question

migrated from Mar 6 '13 at 11:06

This question came from our site for professional and enthusiast programmers.

This sounds like a nightmare. You have Mongo support hence that's how you're using MMS, correct? Or were you grandfathered in, as the MMS product was broken into OpsManager and CloudManager. LOL I just replied to a 2013 thread. – Ali Razeghi Feb 25 at 22:55

Firtsly, I hope you have set the indexes. At the other hand, If you don't use db.repairDatabase() try it when you're in maintanance mode. That command will re-indexing and doing many performance procedures.

If you want to more details; repairDatabase()

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.