-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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 global variable tidb_schema_version_cache_limit to control infoschema cache size #46558
Conversation
… in grafana Signed-off-by: crazycs520 <crazycs520@gmail.com>
Hi @crazycs520. Thanks for your PR. PRs from untrusted users cannot be marked as trusted with I understand the commands that are listed here. 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/test-infra repository. |
/ok-to-test |
@crazycs520 Can you add the monitoring screenshots to PR description? |
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## master #46558 +/- ##
================================================
- Coverage 73.3027% 72.6804% -0.6224%
================================================
Files 1322 1343 +21
Lines 396235 402539 +6304
================================================
+ Hits 290451 292567 +2116
- Misses 87261 91413 +4152
- Partials 18523 18559 +36
Flags with carried forward coverage won't be shown. Click here to find out more.
|
Signed-off-by: crazycs520 <crazycs520@gmail.com>
Signed-off-by: crazycs520 <crazycs520@gmail.com>
Signed-off-by: crazycs520 <crazycs520@gmail.com>
… cache size Signed-off-by: crazycs520 <crazycs520@gmail.com>
Signed-off-by: crazycs520 <crazycs520@gmail.com>
Need to discuss with @easonn7 first as there's session variable changes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
/test unit-test |
@crazycs520: The specified target(s) for
Use In response to this:
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/test-infra repository. |
Signed-off-by: crazycs520 <crazycs520@gmail.com>
/test tiprow_fast_test |
@crazycs520: The specified target(s) for
The following commands are available to trigger optional jobs:
Use
In response to this:
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/test-infra repository. |
/approve In the future, we need to enhance memory tracing to avoid OOM issues. |
/test all |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: cfzjywxk, easonn7, xhebox, zimulala The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/merge |
@cfzjywxk: We have migrated to builtin Please use
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. |
/test all |
/retest |
1 similar comment
/retest |
/ok-to-merge |
/test build |
@crazycs520: The specified target(s) for
Use In response to this:
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/test-infra repository. |
What problem does this PR solve?
Issue Number: close #46524
Problem Summary: add global variable tidb_schema_version_cache_limit to control infoschema cache size and add/refine metric.
What is changed and how it works?
To fix #46524, we can simply enlarge the info-scheme cache capacity from 16 to 64. However, in scenarios with a large number of tables, this increases the risk of TiDB OOM.
So this PR just add global variable
tidb_schema_version_cache_limit
to control infoschema cache size and refine metric in grafana to better diagnose this issue later. If you meet issue in #46524 with same root cause, you can enlarge the global variabletidb_schema_version_cache_limit
to fix it.Check List
Tests
Load Schema OPS
metrics, you can see many load snapshot schema OPS, this is what causes QPS to drop.set @@global. tidb_schema_version_cache_limit=64;
, then the query QPS return to 18000.Side effects
Documentation
Release note
Please refer to Release Notes Language Style Guide to write a quality release note.