-
-
Notifications
You must be signed in to change notification settings - Fork 370
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
Add restart option in config_pgcluster.yml #354
Conversation
Thank you for your contribution, @artemsafiyulin. We appreciate the effort you put into this. Before we move forward, could you please run We're looking forward to further reviewing this new functionality you've proposed. In the meantime, we'll wait for @vitabaks's feedback and analysis on this pull request. Thanks again for your contribution. |
Co-authored-by: Vitaliy Kukharik <37010174+vitabaks@users.noreply.github.com>
Co-authored-by: Vitaliy Kukharik <37010174+vitabaks@users.noreply.github.com>
Co-authored-by: Vitaliy Kukharik <37010174+vitabaks@users.noreply.github.com>
Co-authored-by: Vitaliy Kukharik <37010174+vitabaks@users.noreply.github.com>
Co-authored-by: Vitaliy Kukharik <37010174+vitabaks@users.noreply.github.com>
Co-authored-by: Vitaliy Kukharik <37010174+vitabaks@users.noreply.github.com>
Co-authored-by: Vitaliy Kukharik <37010174+vitabaks@users.noreply.github.com>
Co-authored-by: Vitaliy Kukharik <37010174+vitabaks@users.noreply.github.com>
@vitabaks your changes commited |
OK, thank you. I need to further test this code. |
Test 1
not passed |
Re-testFix: c4382f8 result:
passed |
Fixed (example): ERROR! The requested handler 'reload patroni' was not found in either the main handlers list nor in the listening handlers list
Test with restartresult:
passed |
since the setting field shows only the current value of the parameter and not the new one, in this case we do not need to output this field. A list of parameter names that require restarting is sufficient.
Display only parameter names that require a restartIn this example, we see that server 20 has a different list of parameters for restarting (it is possible if the parameters are set at the level of a separate host (for example, using alter system) than the other servers
|
This MR add next functionality:
If changed postgresql_variable parameter, who need restart postgresql service and you set variable "pending_restart", True value, than patroni cluster will be restarted.