-
Notifications
You must be signed in to change notification settings - Fork 252
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
[Bug]: Replica cluster require a restart after promote #4172
Comments
More description For the replica clusters, if the replica cluster has one instances, the archive_mode is set to always in primary. |
when we promote a cluster, the instance reconciler will write new custom.conf file with archive_mode=on, and return a reloadNeeded=true flag
But this reload will not happen, as in this line we get replica cluster promoted by
as following code show, the instance reload only been called when there is no restart. so we miss the reload here
And in next reconfile loop, as there is no file change, there is no reload needed. so the reload is skipped here. |
When a replica cluster is promoted, the `archive_mode` is changed from `always` to `on`. This change requires a restart because Postgres does not reload the configuration during the promotion. Closes: #4172 Signed-off-by: Tao Li <tao.li@enterprisedb.com> Signed-off-by: Jaime Silvela <jaime.silvela@enterprisedb.com> Co-authored-by: Jaime Silvela <jaime.silvela@enterprisedb.com>
When a replica cluster is promoted, the `archive_mode` is changed from `always` to `on`. This change requires a restart because Postgres does not reload the configuration during the promotion. Closes: #4172 Signed-off-by: Tao Li <tao.li@enterprisedb.com> Signed-off-by: Jaime Silvela <jaime.silvela@enterprisedb.com> Co-authored-by: Jaime Silvela <jaime.silvela@enterprisedb.com> (cherry picked from commit 33d7b65)
When a replica cluster is promoted, the `archive_mode` is changed from `always` to `on`. This change requires a restart because Postgres does not reload the configuration during the promotion. Closes: #4172 Signed-off-by: Tao Li <tao.li@enterprisedb.com> Signed-off-by: Jaime Silvela <jaime.silvela@enterprisedb.com> Co-authored-by: Jaime Silvela <jaime.silvela@enterprisedb.com> (cherry picked from commit 33d7b65)
When a replica cluster is promoted, the `archive_mode` is changed from `always` to `on`. This change requires a restart because Postgres does not reload the configuration during the promotion. Closes: #4172 Signed-off-by: Tao Li <tao.li@enterprisedb.com> Signed-off-by: Jaime Silvela <jaime.silvela@enterprisedb.com> Co-authored-by: Jaime Silvela <jaime.silvela@enterprisedb.com> (cherry picked from commit 33d7b65)
) When a replica cluster is promoted, the `archive_mode` is changed from `always` to `on`. This change requires a restart because Postgres does not reload the configuration during the promotion. Closes: cloudnative-pg#4172 Signed-off-by: Tao Li <tao.li@enterprisedb.com> Signed-off-by: Jaime Silvela <jaime.silvela@enterprisedb.com> Co-authored-by: Jaime Silvela <jaime.silvela@enterprisedb.com> Signed-off-by: Douglass Kirkley <dkirkley@eitccorp.com>
Is there an existing issue already for this bug?
I have read the troubleshooting guide
I am running a supported version of CloudNativePG
Contact Details
No response
Version
1.22.2
What version of Kubernetes are you using?
1.29
What is your Kubernetes environment?
Self-managed: kind (evaluation)
How did you install the operator?
YAML manifest
What happened?
when replica cluster promoted,
archive_mode
changed from always to on but primary is not restart, once scale up the cluster, primary will restart.Cluster resource
No response
Relevant log output
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: