Syncing the data in the staging instance of DataWarehouse
Problem
You want to load fresh data into the staging instance of DataWarehouse.
Steps
-
Log into the staging OpenShift project on the command line, e.g. by running the command on the “Copy login command” page hidden behind the menu in the top-right corner of the OpenShift web console.
-
Scale the staging DataWarehouse deployment to zero via
oc scale --replicas 0 dc/datawarehouse-webservice-staging
. -
Get the name of one of the finished DataWarehouse backup pods via
oc get pod -o name | grep datawarehouse-backup
, and spawn a temporary debug pod for it viaoc debug pod/name
. -
Modify the bucket configuration in the
BUCKET_DH_DW_BACKUPS_STAGING
environment variable to point to the production bucket. -
Run
cki_deployment_pgsql_restore.sh
and select the backup to restore. -
Wait.
-
Scale the staging DataWarehouse deployment back up via
oc scale --replicas 2 dc/datawarehouse-webservice-staging
.