-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
[bitnami/postgresql-ha] How to properly handle major version upgrades? #1798
Comments
@CountZukula IMO the safest way to migrate between major versions is to do a Backup and Restore. |
For most databases that would suffice, but when faced with large datasets I might prefer an in-place upgrade. I understand that this would not be supported in the future of this chart? |
@CountZukula You are right in that regard. Re: future support, @juan131 @javsalgar could you please chime in here. |
This Issue has been automatically marked as "stale" because it has not had recent activity (for 15 days). It will be closed if no further activity occurs. Thanks for the feedback. |
@juan131 any ideas? |
Hi @sameersbn I guess we could try to add some mechanisms to upgrade the schema in the data whenever we detect there's persisted data (using We're doing sth similar for MariaDB (see https://github.com/bitnami/bitnami-docker-mariadb/blob/master/10.1/debian-9/rootfs/libmysql.sh#L376 and https://github.com/bitnami/bitnami-docker-mariadb/blob/master/10.1/debian-9/rootfs/libmysql.sh#L718) |
Our procedure is roughly:
... where we were moving from the built-in artifactory helm chart's postgresql 9.6.x to the latest 12.x. This is effectively a backup/restore, but I never had to write a file anywhere or worry about kubectl cp'ing it or whatever., EDIT: To clarify the above command...
Future upgrades might require appending the PG major version to the release name, to allow both the old and new versions to run at the same time, and a subsequent change of database url in the application helm chart. |
Thanks so much for sharing this workaround to backup/restore your existing release data!! We really appreciate it. |
Unfortunately, this issue was created a long time ago and although there is an internal task to fix it, it was not prioritized as something to address in the short/mid term. It's not a technical reason but something related to the capacity since we're a small team. Being said that, contributions via PRs are more than welcome in both repositories (containers and charts). Just in case you would like to contribute. During this time, there are several releases of this asset and it's possible the issue has gone as part of other changes. If that's not the case and you are still experiencing this issue, please feel free to reopen it and we will re-evaluate it. |
I am currently testing out the postgresql-HA chart and was wondering how a major version upgrade of PostgreSQL would be handled properly in the default scenario? It is my understanding that the postgres version can be easily modified in the chart's values, but when the data folders are instantiated a major version change (and chart update) results in broken containers. Makes sense, as the data folders have to be updated to match the new postgres version. Will this be handled by the chart in the future, or is there a clean way of doing this manually?
The text was updated successfully, but these errors were encountered: