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: README.md
+12-12
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@ This repo contains the service and cron scripts used to run a failover gocdb ins
7
7
* autoEngageFailover/
8
8
* Contians a Service script (```gocdb-autofailover.sh```) and child scripts that monitors the main production instance. If a prolonged outage is detected, the GOCDB top DNS alias 'goc.egi.eu' is swtiched from the production instance to the failover instance. This switch can also be performed manually when needed.
9
9
* importDBdmpFile/
10
-
* Contains a sript that should be invoked by cron hourly (```1_runDbUpdate.sh```) to download and install a .dmp of the production DB into the local failover DB. This runs separtely from the autoEngageFailover process.
10
+
* Contains a script that should be invoked by cron hourly (```1_runDbUpdate.sh```) to fetch and install a .dmp of the production DB into the local failover DB. This runs separtely from the autoEngageFailover process.
11
11
* nsupdate_goc/
12
12
* Scripts for switching the DNS to/from the production/failover instance.
13
13
* archiveDmpDownload/
@@ -21,14 +21,13 @@ This repo contains the service and cron scripts used to run a failover gocdb ins
21
21
|_ gocdb-autofailover.sh# MAIN SERVICE SCRIPT to mon production instance
22
22
|_ engageFailover.sh # Child script, run if prolonged outage is detected
23
23
24
-
importDBdmpFile/ # Scripts download/install a .dmp of the prod data
24
+
importDBdmpFile/ # Scripts fetch/install a .dmp of the prod data
25
25
|_ 1_runDbUpdate.sh # MAIN SCRIPT that can be called from cron, invokes child scripts below
26
26
|_ ora11gEnvVars.sh # Setup oracle env
27
-
|_ getDump.sh # Download a .dmp of the production data
27
+
|_ getDump.sh # Fetch a .dmp of the production data
28
28
|_ dropGocdbUser.sh # Drops the current DB schema
29
-
|_ loadData.sh # Load the last successfully downloaded DB dmp into the RDBMS
29
+
|_ loadData.sh # Load the last successfully fetched DB dmp into the RDBMS
30
30
|_ gatherStats.sh # Oracle gathers stats to re-index
31
-
|_ pass_wgetrc_exemplar.txt # Sample pwd file for getDump.sh (rename to pass_wgetrc)
32
31
|_ pass_file_exemplar.txt # Sample pwd file for DB (rename to pass_file)
33
32
34
33
nsupdate_goc/ # Scripts for switching the DNS to the failover
@@ -51,15 +50,15 @@ following:
51
50
* the gocdb admins are emailed,
52
51
* the age of the last successfully imported dmp file is
53
52
checked to see that it is current,
54
-
* the hourly cron that downloads the dmp file is stopped (see
53
+
* the hourly cron that fetches the dmp file is stopped (see
55
54
importDBdmpFile below),
56
55
* <strike>symbolic links to the server cert/key are updated so they
57
56
point to the 'goc.egi.eu' cert/key</strike> (note, no longer needed as cert contains dual SAN)
58
57
* the dnscripts are invoked to change the dns (see
59
58
nsupdate_goc below).
60
59
61
60
## /root/importDBdmpFile/
62
-
Contains scripts that download the .dmp file and install this
61
+
Contains scripts that fetches the .dmp file and install this
63
62
dmp file into the local Oracle XE instance. The master script
64
63
is '1_runDbUpdate.sh' which needs to be invoked from an hourly
65
64
cron:
@@ -71,10 +70,11 @@ cron:
71
70
/root/importDBdmpFile/1_runDbUpdate.sh
72
71
```
73
72
74
-
You will also need to modify the two password files to specify
75
-
your own pw ('pass_wgetrc' and 'pass_file'). These contain the
76
-
pw for the secure download of dmp file and the pw of the DB
77
-
system user.
73
+
You will also need to:
74
+
* generate a public/private key pair using `ssh-keygen` and ensure the public
75
+
key is present on the host with the database dmp file.
76
+
* populate `importDBdmpFile/failover_TEMPLATE.sh` with
77
+
appropriate values and copy it to `/etc/gocdb/failover.sh`
78
78
79
79
## /root/nsupdate_goc/
80
80
Contains the nsupdate keys and nsupdate scripts for switching
@@ -138,7 +138,7 @@ failover so the dns points back to the production instance
138
138
and restore/restart the failover process. This includes:
139
139
* <strike>restore the symlinks to the goc.dl.ac.uk server cert and key
140
140
(see details below)</strike> (no longer needed as cert contains dual SAN)
141
-
* restore the hourly cron to download the dmp of the DB
141
+
* restore the hourly cron to fetch the dmp of the DB
142
142
* run nsupdate procedure to repoint 'goc.egi.eu' back to
0 commit comments