[DOCS-12178] Docs for SERVER-32146: Log slow oplog entry application Created: 01/Nov/18  Updated: 13/Nov/23  Resolved: 29/Nov/18

Status: Closed
Project: Documentation
Component/s: manual, Server
Affects Version/s: None
Fix Version/s: 4.1.5, 4.0.6, 3.6.11, Server_Docs_20231030, Server_Docs_20231106, Server_Docs_20231105, Server_Docs_20231113

Type: Task Priority: Major - P3
Reporter: Kay Kim (Inactive) Assignee: Kay Kim (Inactive)
Resolution: Fixed Votes: 0
Labels: SWDI, neweng
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Documented
documents SERVER-32146 Log slow oplog entry application Closed
Duplicate
Participants:
Days since reply: 4 years, 49 weeks, 3 days ago
Epic Link: DOCS: 4.2 Server/Tools

 Description   

Description

Description:

This introduces logging for oplog entries that are slow to apply on secondaries. The rule is to log if the op application took longer than "slowMS". This is the same threshold that we use for slow operation logging on primaries.

Note that, unlike slow op logging on primaries, this feature does not come with an option to log all ops you apply. Only oplog entries considered slow to apply (i.e. above the "slowMS" threshold) will be logged on secondaries.

Engineering Ticket Description:

We log slow operations on the primary, it would also be helpful to log slow oplog application to see what's using system resources.

Scope of changes

  • source/release-notes/4.2.txt
    • relnotes and others mention that the log verbosity level does not affect this logging. As such, for now, will not update on the verbosity logging section that the setting has no effect on secondary slow oplog logging.
  • source/core/replica-set-oplog.txt
  • source/core/replica-set-secondary.txt
  • source/core/replica-set-sync.txt
  • source/includes/apiargs-dbcommand-profile-fields.yaml
  • source/includes/extracts-4.2-changes.yaml
  • source/includes/fact-log-slow-queries.rst
  • source/includes/options-mongod.yaml
  • source/reference/log-messages.txt
  • source/replication.txt
  • source/tutorial/manage-the-database-profiler.txt
  • source/administration/configuration
  • source/administration/monitoring.txt
  • source/tutorial/evaluate-operation-performance.txt
  • source/tutorial/troubleshoot-replica-sets.txt

Impact to Other Docs

none

MVP (Work and Date)

Resources (Scope or Design Docs, Invision, etc.)



 Comments   
Comment by Githook User [ 04/Mar/19 ]

Author:

{'name': 'Kay Kim', 'email': 'kay.kim@mongodb.com'}

Message: DOCS-12178: cleanup backport merge cruft
Branch: v3.6
https://github.com/mongodb/docs/commit/3827b6417a8f0588a00dc8503377eae95a986a4c

Comment by Githook User [ 04/Mar/19 ]

Author:

{'name': 'kay', 'username': 'kay-kim', 'email': 'kay.kim@10gen.com'}

Message: DOCS-12178: Backport to 3.6.11: secondaries log slow oplog applications
Branch: v3.6
https://github.com/mongodb/docs/commit/f2136276470a647b21a195a3177c3e094b15887e

Comment by Githook User [ 05/Feb/19 ]

Author:

{'name': 'Kay Kim', 'email': 'kay.kim@mongodb.com'}

Message: DOCS-12178: tweak last commit to include explicit for more info
Branch: v4.0
https://github.com/mongodb/docs/commit/80f0b9a66c51826e5b2cec5f8da4ee210011f3d9

Comment by Githook User [ 05/Feb/19 ]

Author:

{'name': 'kay', 'email': 'kay.kim@10gen.com', 'username': 'kay-kim'}

Message: DOCS-12178: Backport to 4.0.6: secondaries log slow oplog applications
Branch: v4.0
https://github.com/mongodb/docs/commit/b36b5940ce6bd33c1b7f6f39429184a7e9d4ff6f

Comment by Githook User [ 15/Jan/19 ]

Author:

{'email': 'kay.kim@mongodb.com', 'name': 'Kay Kim'}

Message: DOCS-12178: tweak last commit to include explicit for more info
Branch: v4.0.6
https://github.com/mongodb/docs/commit/f4dfb8535acba3c2c15e2f5e85e9a930be89f2e8

Comment by Githook User [ 15/Jan/19 ]

Author:

{'email': 'kay.kim@mongodb.com', 'name': 'Kay Kim'}

Message: DOCS-12178: part2 – tweaks to incorporate the backport/availability in 4.0.6
Branch: master
https://github.com/mongodb/docs/commit/4738ad043ab1a91e62f5cc97c70e89bf9d935e65

Comment by Githook User [ 15/Jan/19 ]

Author:

{'username': 'kay-kim', 'email': 'kay.kim@10gen.com', 'name': 'kay'}

Message: DOCS-12178: Backport to 4.0.6: secondaries log slow oplog applications
Branch: v4.0.6
https://github.com/mongodb/docs/commit/cb347c558086d02c36e263de776a4e5984370c08

Comment by Githook User [ 29/Nov/18 ]

Author:

{'name': 'kay', 'email': 'kay.kim@10gen.com', 'username': 'kay-kim'}

Message: DOCS-12178: 4.2 secondaries log slow oplog applications
Branch: master
https://github.com/mongodb/docs/commit/27dcdb35185dc4f96b99020c6eed45c78889811f

Generated at Thu Feb 08 08:04:35 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.