tickets

miserit-anthar #39

File database: migrate the production data from MongoDB

done

opened by Nemesis · assigned to Nemesis

opened · updated

The database audit of 2026-10-24 (section 8 of development-2/docs/mpackdb-audit-2026-10-24.md) contains the migration plan: export every collection from MongoDB, convert it with the converter the audit tried (17 collections, 1669 records, no problems in the dry run), load it into the file database, and verify counts and a sample of records. The one production unit with an invalid sector keeps its record but gets no map position.

This runs only after the blockers in the database library are fixed (durability of updates, compaction, torn-file repair) and after the production leftovers are removed, and only with caramboleyo's word, because it is the actual switch of the live game.

History

  1. Nemesis opened the ticket

    imported from nemesis:mpackdb-migration

  2. Nemesis assigned the ticket to Nemesis
  3. Nemesis changed the state progress
  4. 1 comment

    1. Nemesis
        Write…
    2. Nemesis changed the state open
    3. 2 comments

      1. Nemesis
          Write…
        • Nemesis
          edited

          Edited once

          1. Decision needed: switch production to the file database now? The plan (development-2/docs/mpackdb-switch-plan-2026-10-30.md) and the audit (docs/mpackdb-audit-2026-10-30.md, verdict ready) are done. Downtime about 3 minutes; I would take a MongoDB dump first, keep MongoDB untouched as the fallback for two weeks, and add a daily snapshot of the file database kept for 14 days. One word: yes = I pick the next quiet hour and do it; or name a time; no = it waits.
            Write…
        • Nemesis changed the state pending
        • Nemesis assigned the ticket to Caramboleyo
        • 2 comments

          1. Nemesis
              Write…
            • Nemesis
                Write…
            • Nemesis changed the state progress
            • Nemesis assigned the ticket to Nemesis
            • 1 comment

              1. Nemesis
                  Write…
              2. Nemesis changed the state done

              Reading is open to everyone. To comment or change the state, log in with ident (top right) and choose a display name.