Skip to main content

Training Environments

Background

To assist in the onboarding of users there is a Supervision Training environment (though that isn’t to say that it can’t be used for POAS, it just currently isn’t). This is the environment that users are actively trained in and throughout this document will be refered to as training. There is a second environment that the training team use to setup cases/client/etc in a specfic state so they ready to go for specific traning sessions. We refer to this second environment as the data seeding environment or training-data.

The idea being that the training team setup all their data ready for a training session in training-data and then a member of the development team can trigger a job that migrates all that data into the training environment in readiness for the actual training session. Once the session is complete the training environment can again be reset with the snapshot of training-data and more training can be commenced.

When creating a backup/snapshot the job will backup both the api & membrane databases, along with the contents of the opg-backoffice-data-store bucket to an S3 bucket defined here. All the ECS Tasks are defined here and the scripts themselves are here

Moving Data Between Environments

This pattern leads to three broad requirements.

  • Take a snapshot of training-data - when the training team setup new cases.
  • Restore the snapshot of training-data back into training-data - if during case setup there’s a mistake that they don’t want persisted in the dataset.
  • Restore the snapshot of training-data into training - so people can be trained.

These actions are all carried out by the Jenkins job found here with appropriate options selected.

Snapshot training-data

  • For Environment choose training-data
  • For Backup or Restore choose backup
  • Run the job.

backup training data

Restore training-data back into training-data

  • For Environment choose training-data
  • For Backup or Restore choose restore
  • Run the job.

restore training data

Restore training-data snapshot into training

This restores the existing snapshot, if new data has been added then ensure you create the training-data snapshot first.

  • For Environment choose training
  • For Backup or Restore choose restore
  • For If restoring restore from training-data tick the box
  • Run the job.

restore training data

This page was last reviewed on 8 February 2022. It needs to be reviewed again on 8 March 2022 by the page owner #opg-sirius-develop .
This page was set to be reviewed before 8 March 2022 by the page owner #opg-sirius-develop. This might mean the content is out of date.