cluster: support IngoreInitConfigComps#1987
Conversation
|
[REVIEW NOTIFICATION] This pull request has not been approved. 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. DetailsReviewer can indicate their review by submitting an approval review. |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #1987 +/- ##
===========================================
- Coverage 57.05% 39.13% -17.93%
===========================================
Files 313 266 -47
Lines 33492 29336 -4156
===========================================
- Hits 19108 11478 -7630
- Misses 12140 16374 +4234
+ Partials 2244 1484 -760
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
I can't fix this unit test, can someone help me? |
|
I think we should resolve that it takes a lot of time(several hours) to generate config, rather than provide a flag to ignore it |
I don't know why we should generate configs in all nodes when scale in. The config seems unchanged. Could you please explain it to me? |
|
PTAL |
|
If any PD node is scaled in, we should re-generate configs for all TiKV and TiDB nodes as they are in the startup scripts. And the Prometheus config is always updated if any node is added or removed from the cluster. I agree that we don't have to regenerate configs for all nodes in some cases, but that could be quite complex to implement, the current approach is a reasonable workaround. Could you rename the |
|
Thanks for your explanation @AstroProfundis |
|
Sorry for the delay...
I agree, and I think TiFlash is also safe to be ignored, but I'm not 100% sure about that... |
|
In our production environment(only TiKV cluster), I have used this code many times and found nothing unusual, how about adding this feature as optional? Our cluster has hundreds of nodes, and init config for every node when scaling is really slow. |
|
I agree that adding it as an optional switch for users to decide what components should be ignored when updating configs could be reasonable.
How about like this? |
There was a problem hiding this comment.
Have updated name @AstroProfundis
And I don't know what's the meaning of mark it as hidden
|
@AstroProfundis It's been a long time, Do you still interested in this PR? |
What problem does this PR solve?
If we have a large number of tikv-server, it will cost a lot of time(several hours) to generate config
What is changed and how it works?
./tiup-cluster scale-in Kvstore_UAT_0 --node <IP:port> -y --ignore-config-roles tikvCheck List
Tests
Code changes
Side effects
Related changes
Release notes: