File: RestartingServers.txt

package info (click to toggle)
bbmap 39.01%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 21,760 kB
  • sloc: java: 267,418; sh: 15,163; python: 5,247; ansic: 2,074; perl: 96; xml: 38; makefile: 38
file content (33 lines) | stat: -rwxr-xr-x 1,230 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
These instructions are for JGI internal use.

If a taxonomy server or Sketch server dies:

Look at /global/projectb/sandbox/gaag/bbtools/server/start*Server.sh, which includes:

startTaxServer.sh
startRefseqServer.sh
startProteinServer.sh
startNtServer.sh
startSilvaServer.sh

Each file indicates where to run the script.  So, for example, startTaxServer.sh says: #Run this on gpweb25
ssh to the indicated machine, change directory to /global/projectb/sandbox/gaag/bbtools/server/, and run startTaxServer.sh.
It does not matter which user you are logged in as.  But if you run into permission problems, make a copy of the script somewhere else and run it there.

To update taxonomy, go to /global/projectb/sandbox/gaag/bbtools/tax
1) Create a new directory
2) Copy the old shellscripts from "latest"
3) Execute the shellscripts
4) Point the "latest" symlink to the new directory after execution finishes
5) Restart the taxonomy server

For example:
cd /global/projectb/sandbox/gaag/bbtools/tax/
mkdir feb13_2019
cp latest/*.sh feb13_2019
cd feb13_2019
sh fetchOuter.sh 1>fetch.o 2>&1 &
#(wait until it finishes; it will create a file called "finished" when complete)
cd ..
ln -sfn feb13_2019 latest
#(restart the taxonomy server)