-
Notifications
You must be signed in to change notification settings - Fork 312
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
Fix/scalein pump monitor not reloaded #958
Merged
ti-chi-bot
merged 8 commits into
pingcap:master
from
jsvisa:fix/scalein-pump-monitor-notreload
Dec 9, 2020
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
6c6a213
style(cluster): use IterInstance instead of for-loop twice
jsvisa f6b0dbc
fix(cluster/update_meta): alter the metedata directly
jsvisa 044b29c
fix(dm/update_meta): alter the metedata directly
jsvisa feecbf3
feat(cluster/scale_in): don't need to alter pd's topo independent
jsvisa 8e36da8
tests(cluster,dm): add prometheus's config regenerate after scale-in
jsvisa 7e0bcb7
feat(cluster/prune): updateMeta and reload config after destroy tombs…
jsvisa f6df856
tests(cluster): add pump scale testcase
jsvisa 6238d42
fix(tests/tiup): remove ipprefix
jsvisa File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Can we add a function such as
RefreshConfig
to build theregenConfigTasks
? I found that there is a lot of redundant code: https://github.com/pingcap/tiup/pull/958/files#diff-5609f7b865f14ce911938ab0a8f21caa07446244d9c106a5df27ba9c08cf80e6R1386Notice: there are many other places use the same logic, we can replace that logic with just a function call:
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.
Good idea
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.
As this PR contains 200+ lines modified, IMO, I'll trigger another PR to do the refactor work. BTW the file
manager.go
is too large(~ 3000 loc), I want to split this file into some small files If you agree with it. :)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 very nice if you can split the
manager.go
, I want to do that days ago.I think we can add a package (eg.
tiup/pkg/cluster/manager
) which contains several .go files, each of them has different function (eg. split byDeploy
,Start
, 'ScaleOut` .etc.)