openlibrary icon indicating copy to clipboard operation
openlibrary copied to clipboard

Followup to Psql 18 Migration

Open mekarpeles opened this issue 8 months ago • 3 comments

Feature Request

Problem / Opportunity

https://github.com/internetarchive/openlibrary/issues/5675#issuecomment-4136966418

Next Steps

  1. [x] Add olsystem to ol-db0 and consider deploy flow changes for ol-db0 (up-to-date olsystem)
  2. [x] P0 We need to now setup ol-db3 as replica
  3. We still have indices we may want to change (e.g. int -> bigint) #10921 #12009
  4. We need to now setup ol-db3 as replica
  5. We need to update our cron jobs to move backups to not ol-backup0??? (which means we need an ol-backup1?)
  6. Some plan for decomissioning ol-db1 + ol-db2; cc @abezella
  7. ol-db0 extremely carefully sudo rm -rf /2/postgresql/9.3/main and uninstall 9.3: sudo apt-get remove postgresql-9.3 postgresql-client-9.3
  8. symlink pg files from olsystem (and ferm as well). NB: the pg files in /2/ contain different path references than /etc and so symlink may not be possible. Either way, ground truth files should be version controlled in olsystem, maybe for both.
  9. Update grafana + graphite stats e.g. https://catalogd.archive.org/control/stats/db.php?db=openlibrary#60d

Proposal

Breakdown

Implementation Details (for maintainers)

Related files

Refer to this map of common Endpoints: *

Requirements Checklist

Checklist of requirements that need to be satisfied in order for this issue to be closed:

  • [ ]

Stakeholders


Instructions for Contributors

mekarpeles avatar Mar 26 '26 17:03 mekarpeles

May I also recommend updating the docker compose file to point to the new version of postgres and provide instructions for folks to migrate (fully reset?) their local environments.

RayBB avatar Mar 27 '26 07:03 RayBB

Hello @mekarpeles. I would appreciate the opportunity to work on it. Could I be assigned to this issue, please?

rattnak avatar Mar 27 '26 15:03 rattnak

Hi @rattnak! This issue is labeled as Needs: Staff/Internal because it requires access to internal systems and the VPN to perform infrastructural changes. Thank you for the offer!

mekarpeles avatar Apr 06 '26 00:04 mekarpeles