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

Add metrics and statistics about aggressive locking #687

Merged
merged 7 commits into from
Feb 7, 2023

Conversation

MyonKeminta
Copy link
Contributor

@MyonKeminta MyonKeminta commented Feb 3, 2023

metrics/metrics.go Show resolved Hide resolved
txnkv/transaction/txn.go Show resolved Hide resolved
Copy link
Collaborator

@sticnarf sticnarf left a comment

Choose a reason for hiding this comment

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

Only a small optional suggestion.

txnkv/transaction/txn.go Outdated Show resolved Hide resolved
@@ -136,6 +136,11 @@ var (
PrewriteAssertionUsageCounterExist prometheus.Counter
PrewriteAssertionUsageCounterNotExist prometheus.Counter
PrewriteAssertionUsageCounterUnknown prometheus.Counter

AggressiveLockedKeysNew prometheus.Counter
Copy link
Contributor

Choose a reason for hiding this comment

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

Shall we add brief comments explaining them? For example "derived" is vague if not diving into code.

Signed-off-by: MyonKeminta <[email protected]>
Signed-off-by: MyonKeminta <[email protected]>
@MyonKeminta MyonKeminta merged commit 50e86f7 into tikv:master Feb 7, 2023
@MyonKeminta MyonKeminta deleted the m/aggressive-locking-metrics branch February 7, 2023 04:31
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.

4 participants