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

pump/storge: Measure time taken to write to disk, to rotate and fsync #773

Merged
merged 1 commit into from
Oct 20, 2019

Conversation

suzaku
Copy link
Contributor

@suzaku suzaku commented Oct 17, 2019

What problem does this PR solve?

We only measurer the time taken to write a batch of binlogs at the top level.
But we have no other measurementt to help us figure out which step is taking up most of the time.

What is changed and how it works?

Add 3 metrics:

  1. Time taken to write a buf
  2. Time taken to rotate
  3. Time taken to fsync

Check List

Tests

  • Unit test

Code changes

Side effects

Related changes

  • Need to update the documentation
  • Need to update the tidb-ansible repository

@suzaku
Copy link
Contributor Author

suzaku commented Oct 17, 2019

/run-all-tetsts

@suzaku
Copy link
Contributor Author

suzaku commented Oct 17, 2019

/run-all-tests

@IANTHEREAL
Copy link
Collaborator

Good Job! LGTM

Copy link
Contributor

@july2993 july2993 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@july2993
Copy link
Contributor

/run-cherry-picker

@sre-bot
Copy link

sre-bot commented Oct 29, 2019

cherry pick to release-2.1 failed

@sre-bot
Copy link

sre-bot commented Oct 29, 2019

cherry pick to release-3.0 failed

@sre-bot
Copy link

sre-bot commented Oct 29, 2019

cherry pick to release-3.1 failed

@july2993
Copy link
Contributor

/run-cherry-picker

1 similar comment
@you06
Copy link
Contributor

you06 commented Oct 29, 2019

/run-cherry-picker

@sre-bot
Copy link

sre-bot commented Oct 29, 2019

cherry pick to release-2.1 failed

@sre-bot
Copy link

sre-bot commented Oct 29, 2019

cherry pick to release-3.0 in PR #783

@sre-bot
Copy link

sre-bot commented Oct 29, 2019

cherry pick to release-3.1 in PR #784

@suzaku
Copy link
Contributor Author

suzaku commented Nov 19, 2019

/run-cherry-picker

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants