Skip to content
This repository has been archived by the owner on Oct 22, 2020. It is now read-only.

PostgreSQL helm chart upgrade #110

Open
dbandin opened this issue Jul 10, 2019 · 3 comments
Open

PostgreSQL helm chart upgrade #110

dbandin opened this issue Jul 10, 2019 · 3 comments
Labels
enhancement New feature or request fabric Hyperledger Fabric issue

Comments

@dbandin
Copy link
Contributor

dbandin commented Jul 10, 2019

Nephos is currently using stable/postgresql chart as backend of few services, running deploy with the --upgrade flag, ignores postgresql version.

Should it be added to the workflow? Otherwise if the user is not aware, may keep old versions of postgreSQL across time.

The instruction for the manual upgrade are in the helm chart repo, it will vary depending on the chart version -> https://github.com/helm/charts/tree/master/stable/postgresql

@dbandin dbandin added enhancement New feature or request fabric Hyperledger Fabric issue labels Jul 10, 2019
@alexvicegrab
Copy link
Contributor

@dbandin, about PostgreSQL, yes, there have been upgrades that break the build, but given that we have added the ability to set the specific version of a chart, we should not need to hardcode it.

@alexvicegrab
Copy link
Contributor

And yes, an upgrade to PostgreSQL major version that preserves data will be laborious and should probably involve backing up the data and generating a new deployment to which we transfer the data.

@dbandin
Copy link
Contributor Author

dbandin commented Jul 10, 2019

@alexvicegrab Thanks for the answers!. The issue was open to see if we can consider adding those steps into nephos when we upgrade hyperledger, upgrade also postgres, preserving the data or re-generating it.
Indeed as described in the link I posted, the upgrade preserving data involves doing a pg_dump of the current instance and importing the data in the new deployment.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request fabric Hyperledger Fabric issue
Projects
None yet
Development

No branches or pull requests

2 participants