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) #784

Closed

Conversation

sre-bot
Copy link

@sre-bot sre-bot commented Oct 29, 2019

cherry-pick #773 to release-3.1


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

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

@suzaku
Copy link
Contributor

suzaku commented Nov 5, 2019

The robot generated PR is broken.

@suzaku suzaku closed this Nov 5, 2019
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.

3 participants