Database Migration
Databases, like other PaaS objects, cannot be automatically migrated to a different type of SDN, but they can be recreated in the new network.
Before starting the DB migration in the project:
- Perform the network infrastructure migration, if it has not been done yet.
- Perform the balancer migration.
- Update the public DNS A-records.
- Put the DB in read-only mode, or stop all applications with write permissions to this database.
To migrate the database to the Sprut SDN:
- Create a DB snapshot. You can also perform a backup using the pg_dump program or other built-in DB backup tools.
- Restore the DB from the backup in the new network.
- (Optional) Configure the network connectivity of virtual machines with the source and restored databases using the advanced router, so that applications do not lose access to the DB during migration.
- Configure the connection using the new address in the applications working with the migrated DB.
- (Optional) Start the applications working with the migrated DB, if you stopped them before starting the DB migration.
- Make sure that the migration was successful.
- Delete the source database if you no longer need it.