Deprecate online restart #894
Merged
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.
We decided to deprecate online restarts. They have many known problems:
setups use TLS connections in some way.
application_name
is not copied over (it's not part of SHOW FDS likethe other tracked GUCs)
SBuf
itsiobuf
is lost during takeover(this seems quite bad)
many things will almost certainly break.
track_extra_parameters
are not copied over to thenew process.
The new recommended way to do online restarts is by doing a rolling
restart of PgBouncer processes that listen on the same port using
so_reuseport
.This adds a warning to to the docs about this. And starts reporting a warning when the online restart feature is used.