-
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
config: support to dynamically update some config items read from PD #14750
Conversation
/run-unit-test |
1 similar comment
/run-unit-test |
/run-unit-test |
1 similar comment
/run-unit-test |
config/config_handler.go
Outdated
ch.version = version | ||
logutil.Logger(context.Background()).Info("PDConfHandler update config successfully", | ||
zap.String("fromVersion", ch.version.String()), zap.String("toVersion", version.String()), | ||
zap.String("new_config", newConfContent)) |
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.
s/ newConfContent/ newConf ?
or
We only need to log the changed conf items?
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.
Now we have no method to check which config items changed, so I log them all.
But I will implement it in the next few PRs.
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
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
/run-all-tests |
/run-unit-test |
1 similar comment
/run-unit-test |
/run-all-tests |
/run-all-tests |
1 similar comment
/run-all-tests |
What problem does this PR solve?
Part II to implement this proposal: #13660.
Wait for #14303.
In this PR, we refine some code about configs and support to dynamically update some configs items read from PD.
What is changed and how it works?
1.1. remove the feature of hot-reloading configs according to HTTP;
1.2. forbid to update some config items according to SQL like
set @key=val
Check List
Tests