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

Handle more detailed statistics from TiKV #536

Merged
merged 3 commits into from
Jul 13, 2022

Conversation

sticnarf
Copy link
Collaborator

@sticnarf sticnarf commented Jun 29, 2022

This PR collects newly added WriteDetail and other time details returned from TiKV when handling the most dominant write requests (prewrite, commit and pessimistic lock).

@sticnarf sticnarf force-pushed the write-details branch 8 times, most recently from e1de48f to 9076471 Compare July 11, 2022 07:17
@sticnarf sticnarf changed the title Handle write details returned of prewrite and commit Handle more detailed statistics from TiKV Jul 11, 2022
@sticnarf sticnarf force-pushed the write-details branch 3 times, most recently from e936633 to 4c208eb Compare July 11, 2022 07:33
Signed-off-by: Yilin Chen <sticnarf@gmail.com>
@sticnarf sticnarf marked this pull request as ready for review July 11, 2022 07:39
@sticnarf sticnarf requested a review from you06 July 11, 2022 07:39
buf.WriteString(strconv.FormatInt(sd.TotalKeys, 10))
}
if sd.GetSnapshotDuration > 0 {
buf.WriteString("get_snapshot_time: ")
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
buf.WriteString("get_snapshot_time: ")
buf.WriteString(", get_snapshot_time: ")

I'm afraid the not-well formatted output may break some analysis tools.

sticnarf added 2 commits July 13, 2022 15:49
Signed-off-by: Yilin Chen <sticnarf@gmail.com>
Signed-off-by: Yilin Chen <sticnarf@gmail.com>
@sticnarf sticnarf merged commit 57c12f7 into tikv:master Jul 13, 2022
lcwangchao added a commit to lcwangchao/client-go that referenced this pull request Aug 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants