Skip to content
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

Shutdown Postgres container safely when redeploying #54

Open
thalesmg opened this issue Jan 19, 2022 · 0 comments
Open

Shutdown Postgres container safely when redeploying #54

thalesmg opened this issue Jan 19, 2022 · 0 comments

Comments

@thalesmg
Copy link
Contributor

Frequently, when one redeploys an already running cluster after changing something, the Postgres WAL (write ahead log) will get corrupted, preventing the start of the new container. Which in turn prevents the whole monitoring task from starting.

A workaround is to redeploy (again) running pg_resetwal /var/lib/postgresql in the Postgres container as the postgres user, and then trying again. That is very time consuming.

We would need to find a way to safely redeploy the cluster without corrupting Postgres data.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant