Operational procedures | Test database restore

Atividade

OPERATIONS

Departamento

eNGINEERING

Processo

Testing database restore


Descrição

Objetivo

To test and confirm the effectiveness of the backup restore process for a database cluster using AWS Backup, ensuring the integrity and recoverability of data in emergency scenarios

Âmbito

This procedure addresses the need to validate the backup strategy for a database cluster, ensuring that the system can be quickly and accurately restored from a snapshot in AWS Backup.

Definições

N/A


Lista de atividades

  1. Restore database from snapshot

  2. Validate restored database

  3. Clean up database resources


Descrição das atividades

Atividade #1 - Restore database from snapshot

Descrição

Restoring a database cluster from a snapshot in AWS Backup

Recursos

  • Amazon Web Services (AWS)

    • Requires: access to medicineone_clinicalbrain-prod account with the role Disaster_Recovery_Permissions

Responsável

eNGINEERING

Substituição

TODO

Passo a passo

  1. Navigate to Amazon Web Services (AWS)

  2. Log in to the medicineone_clinicalbrain-prod account, utilizing the Disaster_Recovery_Permissions role

  3. Select the Ireland region from the region selection menu

  4. Navigate to RDS service

  5. Select Snapshots from the navigation panel

  6. Select the Backup service tab

  7. Identify and select the latest snapshot based on the date and time it was created

  8. Click on Actions Restore snapshot

  9. Enter a descriptive DB instance identifier (e.g. clinical-brain-dr)

  10. In the Connectivity section, select cb-vpc from the DB subnet group dropdown menu and for the Existing VPC security groups choose allow-postgresql

  11. Click on Restore DB cluster to initiate the restore process

  12. Monitor the restore progress and wait for it to be completed

Stakeholders

TODO

Plano de Comunicação

Informação

Periodicidade

Emissor

Destinatário

Meio

TODO

TODO

TODO

TODO

TODO


Atividade #2 - Validate restored database

Descrição

Connecting to and testing the restored database cluster

Recursos

Responsável

eNGINEERING

Substituição

TODO

Passo a passo

  1. Navigate to Amazon Web Services (AWS)

  2. Log in to the medicineone_clinicalbrain-prod account, utilizing the Disaster_Recovery_Permissions role

  3. Select the Ireland region from the region selection menu

  4. Navigate to RDS service

  5. Select Databases in the navigation panel

  6. Click on the database name that corresponds to your restored cluster

  7. Navigate to the Connectivity & Security tab within your database's detail page

  8. In the Endpoint section, identify and record the value of the Writer endpoint, as it is essential for establishing a connection to the disaster recovery database.

  9. Navigate to Parameter Store service

  10. Locate and open the parameter /databases_connection_strings/master_user

  11. Click on Show decrypted value and note the displayed Credentials, needed for authenticating against the disaster recovery database

    image-20231222-103749.png
  12. Open pgAdmin software

  13. Launch the pgAdmin software

  14. Right click on Servers and navigate to Register → Server

    • In the General tab, enter clinical-brain-dr in the Name field

    • Switch to the Connection tab

    • In the Host name/address field, input the RDS Writer endpoint you noted earlier

    • Use the Credentials from the Parameter Store for the Username and Password fields

    • Click on Save

  15. Expand the clinical-brain-dr server

  16. Right click on clinical_brain database and select Query Tool

  17. Run some SQL queries to test data integrity

Stakeholders

TODO

Plano de Comunicação

Informação

Periodicidade

Emissor

Destinatário

Meio

TODO

TODO

TODO

TODO

TODO


Atividade #3 - Clean up database resources

Descrição

Removing any temporary resources created during the testing process to avoid unnecessary charges

Recursos

  • Amazon Web Services (AWS)

    • Requires: access to medicineone_clinicalbrain-prod account with the role Disaster_Recovery_Permissions

Responsável

eNGINEERING

Substituição

TODO

Passo a passo

  1. Navigate to Amazon Web Services (AWS)

  2. Log in to the medicineone_clinicalbrain-prod account, utilizing the Disaster_Recovery_Permissions role

  3. Select the Ireland region from the region selection menu

  4. Navigate to RDS service

  5. Select Databases in the navigation panel

  6. Click on the database name that corresponds to your restored cluster

  7. Click on Actions → Delete

  8. Monitor the delete progress and wait for it to be completed

Stakeholders

TODO

Plano de Comunicação

Informação

Periodicidade

Emissor

Destinatário

Meio

TODO

TODO

TODO

TODO

TODO

Ficheiros

  File Modified

PNG File image-20231222-103749.png

Jan 23, 2024 by Fernando Tinoco