Skip to content

raftstore: add io throughput metrics for snapshot generation#18110

Merged
ti-chi-bot[bot] merged 7 commits intotikv:masterfrom
hhwyt:snapshot-real-io
Jan 20, 2025
Merged

raftstore: add io throughput metrics for snapshot generation#18110
ti-chi-bot[bot] merged 7 commits intotikv:masterfrom
hhwyt:snapshot-real-io

Conversation

@hhwyt
Copy link
Contributor

@hhwyt hhwyt commented Jan 9, 2025

This PR adds an I/O throughput metric(generate-io) for snapshot generation. It measures the read disk I/O throughput for RocksDB scans during the snapshot generation process.
image

What is changed and how it works?

Issue Number: Close #18140

What's Changed:

Add io throughput metrics for snapshot generation.

Related changes

  • PR to update pingcap/docs/pingcap/docs-cn:
  • Need to cherry-pick to the release branch

Check List

Tests

  • Unit test
  • Integration test
  • Manual test (add detailed scripts or steps below)
  • No code

Side effects

  • Performance regression: Consumes more CPU
  • Performance regression: Consumes more Memory
  • Breaking backward compatibility

Release note

none

Signed-off-by: hhwyt <hhwyt1@gmail.com>
@ti-chi-bot ti-chi-bot bot added release-note-none Denotes a PR that doesn't merit a release note. dco-signoff: yes Indicates the PR's author has signed the dco. contribution This PR is from a community contributor. needs-ok-to-test Indicates a PR created by contributors and need ORG member send '/ok-to-test' to start testing. labels Jan 9, 2025
@ti-chi-bot
Copy link
Contributor

ti-chi-bot bot commented Jan 9, 2025

Hi @hhwyt. Thanks for your PR.

I'm waiting for a tikv member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@ti-chi-bot ti-chi-bot bot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Jan 9, 2025
hhwyt added 2 commits January 10, 2025 19:22
Signed-off-by: hhwyt <hhwyt1@gmail.com>
Signed-off-by: hhwyt <hhwyt1@gmail.com>
@ti-chi-bot ti-chi-bot bot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Jan 10, 2025
@hhwyt
Copy link
Contributor Author

hhwyt commented Jan 20, 2025

@glorv @LykxSassinator PTAL, thx~

assert!(!file.exists());
}

#[cfg(feature = "failpoints")]
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This PR also refactors code related to failpoint tests.

Copy link
Contributor

@glorv glorv left a comment

Choose a reason for hiding this comment

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

LGTM

@ti-chi-bot ti-chi-bot bot added needs-1-more-lgtm Indicates a PR needs 1 more LGTM. approved labels Jan 20, 2025
@ti-chi-bot ti-chi-bot bot added the lgtm label Jan 20, 2025
@ti-chi-bot
Copy link
Contributor

ti-chi-bot bot commented Jan 20, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: glorv, LykxSassinator

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:
  • OWNERS [LykxSassinator,glorv]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@ti-chi-bot ti-chi-bot bot removed the needs-1-more-lgtm Indicates a PR needs 1 more LGTM. label Jan 20, 2025
@ti-chi-bot
Copy link
Contributor

ti-chi-bot bot commented Jan 20, 2025

[LGTM Timeline notifier]

Timeline:

  • 2025-01-20 03:40:37.240466623 +0000 UTC m=+65764.571386028: ☑️ agreed by glorv.
  • 2025-01-20 07:52:20.124432775 +0000 UTC m=+80867.455352174: ☑️ agreed by LykxSassinator.

@ti-chi-bot ti-chi-bot bot added the needs-cherry-pick-release-8.5 Should cherry pick this PR to release-8.5 branch. label Jan 20, 2025
hhwyt added 2 commits January 20, 2025 16:00
Signed-off-by: hhwyt <hhwyt1@gmail.com>
Signed-off-by: hhwyt <hhwyt1@gmail.com>
hhwyt and others added 2 commits January 20, 2025 16:56
@ti-chi-bot
Copy link
Contributor

ti-chi-bot bot commented Jan 20, 2025

@hhwyt: Your PR was out of date, I have automatically updated it for you.

If the CI test fails, you just re-trigger the test that failed and the bot will merge the PR for you after the CI passes.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the ti-community-infra/tichi repository.

@hhwyt
Copy link
Contributor Author

hhwyt commented Jan 20, 2025

/retest

@ti-chi-bot
Copy link
Contributor

ti-chi-bot bot commented Jan 20, 2025

@hhwyt: Cannot trigger testing until a trusted user reviews the PR and leaves an /ok-to-test message.

Details

In response to this:

/retest

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@glorv
Copy link
Contributor

glorv commented Jan 20, 2025

/retest

@ti-chi-bot ti-chi-bot bot merged commit da63ac3 into tikv:master Jan 20, 2025
1 check passed
@ti-chi-bot ti-chi-bot bot added this to the Pool milestone Jan 20, 2025
@ti-chi-bot
Copy link
Member

In response to a cherrypick label: new pull request created to branch release-8.5: #18144.

hhwyt added a commit to ti-chi-bot/tikv that referenced this pull request Jan 21, 2025
)

close tikv#18140

Add io throughput metrics for snapshot generation.

Signed-off-by: hhwyt <hhwyt1@gmail.com>

Co-authored-by: ti-chi-bot[bot] <108142056+ti-chi-bot[bot]@users.noreply.github.com>
(cherry picked from commit da63ac3)
ti-chi-bot bot pushed a commit that referenced this pull request Jan 26, 2025
…#18144)

close #18140

Add io throughput metrics for snapshot generation.

Signed-off-by: hhwyt <hhwyt1@gmail.com>

Co-authored-by: hhwyt <hhwyt1@gmail.com>
xzhangxian1008 pushed a commit to xzhangxian1008/tikv that referenced this pull request Feb 8, 2025
)

close tikv#18140

Add io throughput metrics for snapshot generation.

Signed-off-by: hhwyt <hhwyt1@gmail.com>

Co-authored-by: ti-chi-bot[bot] <108142056+ti-chi-bot[bot]@users.noreply.github.com>
Signed-off-by: xzhangxian1008 <xzhangxian@foxmail.com>
@ti-chi-bot ti-chi-bot bot added the needs-cherry-pick-release-7.5 Should cherry pick this PR to release-7.5 branch. label Jul 18, 2025
ti-chi-bot pushed a commit to ti-chi-bot/tikv that referenced this pull request Jul 18, 2025
close tikv#18140

Signed-off-by: ti-chi-bot <ti-community-prow-bot@tidb.io>
@ti-chi-bot
Copy link
Member

In response to a cherrypick label: new pull request created to branch release-7.5: #18725.
But this PR has conflicts, please resolve them!

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

Labels

approved contribution This PR is from a community contributor. dco-signoff: yes Indicates the PR's author has signed the dco. lgtm needs-cherry-pick-release-7.5 Should cherry pick this PR to release-7.5 branch. needs-cherry-pick-release-8.5 Should cherry pick this PR to release-8.5 branch. needs-ok-to-test Indicates a PR created by contributors and need ORG member send '/ok-to-test' to start testing. release-note-none Denotes a PR that doesn't merit a release note. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Enhance raft snapshot metrics

4 participants