-
Notifications
You must be signed in to change notification settings - Fork 500
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
WIP: Do not set --capacity to tikv-server if resources.limits.storage is absent #951
Conversation
/run-e2e-in-kind |
1 similar comment
/run-e2e-in-kind |
86b8b62
to
0acb5c6
Compare
/run-e2e-in-kind |
given. This makes it possible for users to set capacity in TiKV configuration.
/run-e2e-in-kind |
The |
The problem is users cannot specify capacity via |
/run-e2e-in-kind |
In this case, if users want to set |
You mean we disable I don't think it's a good idea, it might confuse users that part of configuration does not take effect. It will be convenient to view all TiKV configuration in one place, especially we plan to manage component configurations via CRDs. |
@weekface @aylei @onlymellb |
I think this modification is reasonable, but introduce this PR will lead to the existing clusters rolling upgrade. So in order to avoid this problem, we should not modify the sts's pod spec but make a judgment in the tikv startup script, If CAPACITY is "-1" we do not specify the |
you're right, it's an incompatible change. but I don't like using a special A general solution is to fix this kind of bugs in the next version of TiDBCluster CRD. When the user upgrades tidb-operator, it will set This can extend to other incompatible changes. We can hold this until we are going to release the next version of TiDBCluster, e.g. v1alpha2. |
If users want to use |
IIUC, the problem exists when the tidb-operator is upgraded, desired StatefulSet spec from the same CRD may change (if |
Yes, this is what I think. |
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
What problem does this PR solve?
fixes #944
This makes it possible for users to set capacity in TiKV configuration.
What is changed and how does it work?
Do not set --capacity to tikv-server if resources.limits.storage is absent.
Check List
Tests
Code changes
Side effects
Related changes
Does this PR introduce a user-facing change?: