-
Notifications
You must be signed in to change notification settings - Fork 16.4k
Fix PgBouncer after postgres subchart upgrade #29207
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
Conversation
The recent postgres subchart upgrade had some issues. The biggest was the upgrade from PG 11 -> 15 resulted in the default `password_encryption` switching from `md5` to `scram-sha-256`. Simply moving back to 11 is the easiest remediation, and is acceptable since it is the oldest version Airflow supports (as of today in 2.5). Additionally, when updating the subchart, updating existing releases using built-in postges were breaking. As production use cases shouldn't be using built-in postgres, and it's easy to work around when hit, I've just documented the steps to proceed with the upgrade.
|
I recently upgraded Postgres instance, used by Airflow, from 11 to 15 version, so I would like to share my thoughts.
I propose the following solution:
|
Would you like to add a PR for that @dnskr ? I think what @jedcunningham is trying to do is to prepare a new relese of the Helm Chart soon. I think delaying it because the upgrade postgres to 15 with easy workaround is not a good idea - because we need to work out the migration paths and find out whether everything works, which I think will require an automated tests to be written and run with the Helm Chart. It's quite risky to release a new version of Helm Chart where we know our users might flood us with support issues (who will handle those?) if the migration is problematic. I agree change from @jedcunningham is postponing the upgrade, but for a good reason, and from the description and findings of Jed it seems that this migration is far from straightforward. So yes - it is a tactical solution for now, while there is nothing preventing us (you @dnskr ) to work on a parallel (strategic) change to upgrade Postgres. Postgres 11 is supported till November 2023, so we still have quite some time to complete it. |
potiuk
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agree it's a good tactical solution. While strategically we should think about adding migration (and testing scenarios of doing so) for Postgres 11 -> Postgres 15 as a separate PR.
The recent postgres subchart upgrade had some issues: #29071
The biggest was the upgrade from PG 11 -> 15 resulted in the default
password_encryptionswitching frommd5toscram-sha-256. Simply moving back to 11 is the easiest remediation, and is acceptable since it is the oldest version Airflow supports (as of today in 2.5).Additionally, when updating the subchart, updating existing releases using built-in postgres was broken. As production use cases shouldn't be using built-in postgres, and it's easy to work around when hit, I've just documented the steps to proceed with the upgrade.
cc @snjypl