-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
config: deprecate tikv-client.copr-cache.enable
and invisible some copr-cache configs
#22786
config: deprecate tikv-client.copr-cache.enable
and invisible some copr-cache configs
#22786
Conversation
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.
You may need to add it to deprecatedConfig
in config.go.
You can follow this PR #18618 to deprecate this configuration. |
4b5c6b0
to
d96995c
Compare
tikv-client.copr-cache.enable
capacity-mb = 1000.0 | ||
|
||
# Only cache small requests. Zero means no limits for requests. |
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.
All of them are deprecated? PTAL @breeswish
admission-max-result-mb = 10.0 | ||
# Only cache requests takes notable time to process. | ||
admission-min-process-ms = 5 |
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.
Seems that some users are tend to modify these configurations, do we need to remove them?
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.
It's a request from the PM.
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.
@XuHuaiyu PTAL.
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.
@bb7133 may have impression about the client that uses these configuration values. If we drop them, then we cannot serve this kind of clients any more.
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.
How about:
- only expose
capacity-mb
to users by default to increase usability. - make other config items configurable, but hidden by default.
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.
How about:
- only expose
capacity-mb
to users by default to increase usability.- make other config items configurable, but hidden by default.
Hide configurations looks good to me.
tikv-client.copr-cache.enable
tikv-client.copr-cache
Signed-off-by: lzmhhh123 <lzmhhh123@gmail.com>
6fd2024
to
38c9c81
Compare
tikv-client.copr-cache
tikv-client.copr-cache.enable
and invisible some copr-cache configs
Signed-off-by: lzmhhh123 <lzmhhh123@gmail.com>
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.
Please add some test results to prove the configurations are invisible for now.
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
/LGTM |
[REVIEW NOTIFICATION] This pull request has been approved by:
To complete the pull request process, please ask the reviewers in the list to review by filling The full list of commands accepted by this bot can be found here. Reviewer can indicate their review by writing |
/merge |
This pull request has been accepted and is ready to merge. Commit hash: 3b76edc
|
/merge |
unit test failed at:
|
We (the benchbot) uses the |
|
IMO I think compatibility means it won't break a user's current configuration even it's not the default configuration(you know it's rare for a user that he/she doesn't override a default value) |
Signed-off-by: lzmhhh123 lzmhhh123@gmail.com
What problem does this PR solve?
Problem Summary:
What is changed and how it works?
How it Works: make
capcity>0
check whether it enabled.Related changes
Check List
Tests
Release note