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

Upgrade prod db engine #6101

Closed
3 tasks done
Tracked by #137
cnlucas opened this issue Feb 1, 2024 · 4 comments
Closed
3 tasks done
Tracked by #137

Upgrade prod db engine #6101

cnlucas opened this issue Feb 1, 2024 · 4 comments

Comments

@cnlucas
Copy link
Member

cnlucas commented Feb 1, 2024

What we're after:
Cloud.gov needs us to upgrade our CMS db instance from PG 11 to PG 12, as they are retiring PG 11.

Refer to Cloud.gov email for more information.

Completion criteria:

  • We are upgraded to PG 12 15

Tech steps or considerations (optional)

  • Confirm with cloud.gov our maintenance window by Feb 14th
  • Upgrade the db instance by Feb 29th
@pkfec
Copy link
Contributor

pkfec commented Feb 14, 2024

PostgreSQL database service in our lower environments is currently on version PG 15.x.
Screen Shot 2024-02-14 at 5 15 48 PM

@pkfec
Copy link
Contributor

pkfec commented Feb 14, 2024

Steps i followed to upgrade CMS postgres DB from PG 11 to PG 15 in Prod:

  1. ssh into existing fec-cms-prod rds service
  2. take pg_dump from fec-cms-prod service
  3. create new service fec-cms-prod-new
  4. SSH and restore cms pg dump on to the new fec-cms-prod-new service
  5. connect and confirm the tables and data exist on the new DB instance (DBeaver or PGAdmin)
  6. unbind cms app from existing fec-cms-prod service
  7. rename existing service from fec-cms-prod to fec-cms-prod-old-20240214
  8. bind cms app to the new service fec-cms-prod-new
  9. rename new service from fec-cms-prod-new to fec-cms-prod (rename new service to match with the name given in manifest.yml file)
  10. on circleci rerun the latest master build

@pkfec
Copy link
Contributor

pkfec commented Feb 15, 2024

he CMS database was updated to PostgreSQL 15 yesterday evening, and the website appears to be functioning properly

@pkfec pkfec closed this as completed Feb 15, 2024
@pkfec
Copy link
Contributor

pkfec commented Feb 15, 2024

CMS database in Prod environment was updated to PostgreSQL 15 yesterday evening, and the website appears to be functioning properly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: ✅ Done
Development

No branches or pull requests

3 participants