Skip to content

Commit

Permalink
Add server migration checklist.
Browse files Browse the repository at this point in the history
This document lists the numerous steps required to make an orderly
migration from one server to another.

Detailed reference documentation for how to perform these steps is, of
course, still needed.
  • Loading branch information
Benjamin Moody committed Apr 22, 2024
1 parent 1b0cf1f commit 45e709e
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions deploy/MIGRATION-CHECKLIST.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
Server migration checklist
==========================

[ ] **Target**: Check network (reachable, link speed)
[ ] **Target**: Check disk (enough space, no RAID problems)
[ ] **Target**: Pre-synchronize files
[ ] **DNS**: Set minimum TTL
[ ] **Target**: Check/upgrade system packages
[ ] **Target**: Update `/physionet/physionet-build.git`
[ ] **Target**: Update `/physionet/.env`
[ ] **Target**: Update system config files
[ ] **Target**: Enable `SYSTEM_MAINTENANCE_NO_CHANGES`
[ ] **Source**: Dump and transfer database
[ ] **Target**: Restore database (reload uwsgi)
[ ] **Target**: Test nginx/uwsgi is working
[ ] **Target**: Update `/etc/aliases`
[ ] **Target**: Update certificates
[ ] **Target**: Test postfix is working
[ ] **Target**: Test haproxy is working
[ ] **Target**: Configure iptables
[ ] **Target**: Configure qdisc

[ ] (proxy-backward) **Target**: Redirect connections to haproxy
[ ] (proxy-backward) **DNS**: Update records

[ ] **Target**: Stop background-tasks daemon
[ ] **Source**: Stop background-tasks daemon
[ ] **Source**: Enable `SYSTEM_MAINTENANCE_NO_UPLOAD` (reload uwsgi)
[ ] **Target**: Synchronize files
[ ] **Source**: Enable `SYSTEM_MAINTENANCE_NO_CHANGES` (reload uwsgi)
[ ] **Source**: Dump and transfer database
[ ] **Target**: Restore database (reload uwsgi)
[ ] **Target**: Check new content is visible

[ ] (proxy-forward) **Source**: Redirect connections to haproxy
[ ] (proxy-forward) **DNS**: Update records

[ ] **Target**: Disable `SYSTEM_MAINTENANCE_NO_CHANGES` (reload uwsgi)
[ ] **Target**: Remove iptables redirections
[ ] **Target**: Start background-tasks daemon
[ ] **DNS**: Set normal TTL

0 comments on commit 45e709e

Please sign in to comment.