You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: knowledge-studio/4.7.x/README.md
+20-24Lines changed: 20 additions & 24 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,33 +12,33 @@ Any modifications that have been made after the previous `backup` will be replac
12
12
backup/restore scripts do backup/restore data in the following databases of WKS in the order:
13
13
1. MongoDB
14
14
2. PostgreSQL
15
-
3.MinIO
15
+
3.S3
16
16
17
17
<b>NOTE</b> Users should not access to WKS during backup/restore because WKS will be deactivated (All deactivated pods will be reactivated after backup/restore)
18
18
19
19
# Deactivate and Reactivate Knowledge Studio
20
20
## Note: You don't need to deactivate/reactivate when you run the all-backup-restore.sh script because the script handles the process.
21
21
- Deactivate Knowledge Studio
22
22
- Make sure that no training and evaluation processes are running. You can check job status with the following command:
23
-
- `kubectl -n NAMESPACE get jobs`
23
+
- `oc -n NAMESPACE get jobs`
24
24
- raining jobs of Knowledge Studio are named in the format wks-train-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxx, and evaluation jobs are named in the format wks-batch-apply-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx. If the COMPLETIONS column of a training job reads 0/1, that job is still running. Wait until all of the training jobs finish.
25
25
- Deactivate Knowledge Studio with the following command:
This script delegates operations of backup/restore to each database scripts (`mongodb-backup-restore.sh`, `postgresql-backup-restore.sh`, `minio-backup-restore.sh`). The order of getting backup/restore is MongoDB, PostgreSQL, MinIO. Besides, at the beginning of this script, scale down the number of pods to zero. At the end of this script, scale up the number of pods to the initial state. <b>We would recommend running `all-backup-restore.sh` rather than running each database scripts.</b>
37
+
This script delegates operations of backup/restore to each database scripts (`mongodb-backup-restore.sh`, `postgresql-backup-restore.sh`, `s3-backup-restore.sh`). The order of getting backup/restore is MongoDB, PostgreSQL, S3. Besides, at the beginning of this script, scale down the number of pods to zero. At the end of this script, scale up the number of pods to the initial state. <b>We would recommend running `all-backup-restore.sh` rather than running each database scripts.</b>
38
38
39
39
### Prerequisite
40
40
41
-
MinIO client (`mc` command) is required to run backup/restore scripts of MinIO.
41
+
S3 (Minio) client (`mc` command) is required to run backup/restore scripts of S3/Minio.
42
42
Please verify that `mc` command is runnable by `type mc` command.
43
43
Otherwise, scripts will download it from MinIO web site (`https://dl.min.io/`) during backup/restore.
44
44
@@ -48,24 +48,24 @@ backup/restore scripts do backup/restore data in the following databases of WKS
48
48
- `restore`: data of each database are recovered by loading data from backup directories.
49
49
-`[releaseName]`: release name. you can find it at prefix of pod name, e.g. `{release_name}-ibm-watson-ks-yyy-xxx`
50
50
- In 2020 June release, `{release_name}` is always `wks`
51
-
-`[backupDir]`: Backup data of MongoDB, PostgreSQL, Minio are stored respectively into these directories. Each database is also restored loading backup data from these directories:
51
+
-`[backupDir]`: Backup data of MongoDB, PostgreSQL, S3 are stored respectively into these directories. Each database is also restored loading backup data from these directories:
52
52
-`backup`: a new folder with timestamp `wks-backup-yyyymmdd_hhmmss` will be created under [backupDir]:
Otherwise, some of scripts fail when the fail message is shown. <b>In this case, backup data is corrupted, so please do NOT use the corrupted backup data to restore.</b>
@@ -102,23 +102,19 @@ backup/restore scripts do backup/restore data in the following databases of WKS
102
102
2. Restore the databases (`jobq_{release_name_underscore}`, `model_management_api` and `model_management_api_v2`) by loading `.custom` files under `[backupDir]`.
0 commit comments