Followup to Psql 18 Migration
Feature Request
Problem / Opportunity
https://github.com/internetarchive/openlibrary/issues/5675#issuecomment-4136966418
Next Steps
- [x] Add
olsystemto ol-db0 and consider deploy flow changes forol-db0(up-to-date olsystem) - [x] P0 We need to now setup ol-db3 as replica
- We still have indices we may want to change (e.g. int -> bigint) #10921 #12009
- We need to now setup ol-db3 as replica
- We need to update our cron jobs to move backups to not ol-backup0??? (which means we need an ol-backup1?)
- Some plan for decomissioning ol-db1 + ol-db2; cc @abezella
- ol-db0 extremely carefully
sudo rm -rf /2/postgresql/9.3/mainand uninstall 9.3:sudo apt-get remove postgresql-9.3 postgresql-client-9.3 - 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.
- 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
- Before creating a new branch or pushing up changes to a PR, please first run these commands to ensure your repository is up to date, as the pre-commit bot may add commits to your PRs upstream.
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.
Hello @mekarpeles. I would appreciate the opportunity to work on it. Could I be assigned to this issue, please?
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!