Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Log slow oplog queries (mplotqueries --oplog) #705

Closed
mitesh-gosavi opened this issue Jul 2, 2019 · 0 comments
Closed

Log slow oplog queries (mplotqueries --oplog) #705

mitesh-gosavi opened this issue Jul 2, 2019 · 0 comments

Comments

@mitesh-gosavi
Copy link
Contributor

Expected behavior

mplotqueries —oplog flag should provide a scatterplot of all the slow oplog entries along with their duration and timestamp. The scatterplot should be grouped or can be left ungrouped based on additional parameters (if available)

Actual/current behavior

mTools does not currently log any oplogs for the secondary replica set. This issue focuses on logging the slow oplog operations. Log lines for slow oplogs were added as a fix in versions 4.1.5, 3.6.11, 4.0.6 (For reference, see SERVER-32146). mTools currently skips these lines and does not parse or plot them.

Steps to reproduce the actual/current behaviour

mplotqueries —oplog flag can be added to the argument parser. The parser on receiving the --oplog flag can search for log lines containing the “applied op” token (for reference, see https://docs.mongodb.com/manual/core/replica-set-oplog/). On encountering the token, the parser can use the built-in duration function to parse the duration and plot it on a scatterplot. For more accuracy, the parser can also verify if the operation in the log line is an “REPL” operation (for reference, see https://docs.mongodb.com/manual/core/replica-set-oplog/).

Environment

Software Version
mtools 1.5.3
MongoDB server 4.0.10
savinay-vijay added a commit to savinay-vijay/mtools that referenced this issue Jul 2, 2019
savinay-vijay added a commit to savinay-vijay/mtools that referenced this issue Jul 3, 2019
savinay-vijay added a commit to savinay-vijay/mtools that referenced this issue Jul 8, 2019
@stennie stennie added this to the 1.6.0 milestone Dec 27, 2019
@stennie stennie changed the title Log Slow Oplog on Secondary Log slow oplog queries (mplotqueries --oplog) Dec 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants