[SERVER-29490] mongodb secondary keep lagging Created: 07/Jun/17 Updated: 07/Jun/17 Resolved: 07/Jun/17 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Replication |
| Affects Version/s: | 3.2.14 |
| Fix Version/s: | None |
| Type: | Question | Priority: | Major - P3 |
| Reporter: | Wade [X] | Assignee: | Unassigned |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
ubuntu 1404 |
||
| Participants: |
| Description |
|
Mongodb secondary keep lag of time – The total count is not the same. but the latest 10 records are the same. financeset:PRIMARY> db.user_account.count() financeset:SECONDARY> db.user_account.count() financeset:PRIMARY> new Date() financeset:SECONDARY> db.user_account.count() And PRIMARY user_account - SECONDARY(puma) user_account = 6 (for a quite long period, always around 5~6) financeset:SECONDARY> db.user_account.find({},{_id:-1}).limit(8) { "_id" : ObjectId("54ce4fac79337f164b365040") } { "_id" : ObjectId("54f2f90bf4db4b5013e63a1d") } { "_id" : ObjectId("54ceede36f48531b4bd2760a") } { "_id" : ObjectId("54cef8d079337f164b36505a") } { "_id" : ObjectId("54cf84cfe8f067d8cea97991") } { "_id" : ObjectId("54cfa6fe489ba090b7a77c04") } { "_id" : ObjectId("54cfb330489ba090b7a77c07") } { "_id" : ObjectId("54d03dab279657ea64b62c4f") }financeset:PRIMARY> db.user_account.find({},{_id:-1}).limit(8) { "_id" : ObjectId("54ce4fac79337f164b365040") } { "_id" : ObjectId("54f2f90bf4db4b5013e63a1d") } { "_id" : ObjectId("54ceede36f48531b4bd2760a") } { "_id" : ObjectId("54cef8d079337f164b36505a") } { "_id" : ObjectId("54cf84cfe8f067d8cea97991") } { "_id" : ObjectId("54cfa6fe489ba090b7a77c04") } { "_id" : ObjectId("54cfb330489ba090b7a77c07") } { "_id" : ObjectId("54d03dab279657ea64b62c4f") }Also , another secondary has similar phenomenon. financeset:PRIMARY> db.printSlaveReplicationInfo() ENV info #puma is secondary The env is local network. Cpu & network & disk is mostly idle. kkk@tiger:~$ mongod --version We don’t see weird log in secondary log. |
| Comments |
| Comment by Kelsey Schubert [ 07/Jun/17 ] |
|
Hi Wade, Thanks for your report. Please note that SERVER project is for reporting bugs or feature suggestions for the MongoDB server. For MongoDB-related support discussion please post on the mongodb-user group or Stack Overflow with the mongodb tag. A question like this involving more discussion would be best posted on the mongodb-users group. Kind regards, |