2016 CyberShake database migration

From SCECpedia
Revision as of 23:07, 13 May 2016 by Scottcal (talk | contribs) (Created page with "=== Goals of DB Migration === *Swap hardware between moment and focal *On read-only server, have multiple DBs with Study 15.4 and Study 15.12 data *On production server, keep...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Goals of DB Migration

  • Swap hardware between moment and focal
  • On read-only server, have multiple DBs with Study 15.4 and Study 15.12 data
  • On production server, keep Study 15.12 and 15.4

- Migrate older studies to alternative format, delete from production server.

Procedure for CyberShake DB Migration

  1. Run mysqldump on entire DB on focal. Generate dumpfiles for all the metadata, and then each study separately, along with the runs which are not part of a study.
  2. Delete database on moment.
  3. Reconfigure DB on moment (single file per table, etc.)
  4. Load all files into DB on moment; confirm they are present.
  5. Delete database on focal
  6. Load metadata, Study 15.12, Study 15.4 onto focal for read-only access.
  7. Swap names of focal and moment so we don't have to change all our scripts.

Once this is done, we can finalize the alternative format we want. We may want to test SQLite to see if it can handle a large study.