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

txn-file: Calculate RU #1368

Merged
merged 1 commit into from
Jun 20, 2024
Merged

txn-file: Calculate RU #1368

merged 1 commit into from
Jun 20, 2024

Conversation

pingyu
Copy link
Contributor

@pingyu pingyu commented Jun 19, 2024

Changes

  • Calculate RU for txn file

Manual Test

Get RU result from http://pd/metrics, keyspace 7:

  1. Write 10MB pessimistic transaction

    resource_manager_resource_unit_write_request_unit_sum{name="7",type="tp"} 35633.62499999955

  2. Write 10MB txn file transaction

    resource_manager_resource_unit_write_request_unit_sum{name="7",type="tp"} 67347.73828124952

  3. Write 20MB pessimistic transaction

    resource_manager_resource_unit_write_request_unit_sum{name="7",type="tp"} 138614.98828124886

  4. Write 20MB txn file transaction

    resource_manager_resource_unit_write_request_unit_sum{name="7",type="tp"} 202043.21484374919

Signed-off-by: Ping Yu <yuping@pingcap.com>
@coocood coocood merged commit 5f98b39 into tikv:tidb-cse-7.5 Jun 20, 2024
9 checks passed
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.

3 participants