Buffer(Ingestion) Server setup » History » Version 5
Anchi Cheng, 10/07/2020 11:47 AM
1 | 1 | Anchi Cheng | h1. Buffer(Ingestion) Server setup |
---|---|---|---|
2 | |||
3 | NRAMM/SEMC uses a redundant system that keeps pre-processing (frame alignment and ctf estimation) independent between each Krios. The buffer server also has a large enough storage to hold two weeks to a month of movie frames in case primary storage needs service. |
||
4 | |||
5 | {{include(NRAMM buffer server hardware)}} |
||
6 | |||
7 | The software and configuration requirement is described here: |
||
8 | |||
9 | h2. Software requirement for preprocessing |
||
10 | |||
11 | 3 | Anchi Cheng | h3. Processing: |
12 | 1 | Anchi Cheng | |
13 | 3 | Anchi Cheng | The same basic requirement for appion processing server. |
14 | ctfFind4, motioncor2, gctf |
||
15 | |||
16 | h3. Activate the use of buffer server in leginon database. |
||
17 | |||
18 | 1. Create a directory for all the data to be saved. For example /bufferdata/frames. Make it readable by the users. |
||
19 | |||
20 | 2. Run myami/dbschema/tools/buffer_host_setup.py in Leginon environment. to link the buffer host and directory with the camera. This association signals Appion to find movie frames on the buffer server rather than the primary storage. |
||
21 | |||
22 | |||
23 | 1 | Anchi Cheng | Two files are essential which we run as root all the time. |
24 | |||
25 | 2 | Anchi Cheng | * rawtransfer.py (Found in myami/leginon of your git clone) is used to move the movies from camera computer to the buffer server and change its name to match those of the Leginon sum images |
26 | * transfermonitor.sh (Found in myami/leginon) is used to move the movies to the primary storage. |
||
27 | 1 | Anchi Cheng | |
28 | 5 | Anchi Cheng | * A third program run as cron job that removes frame movies accumulate on the buffer server after they are expired (modify leginon/transfermonitor.sh to match your setup). |
29 | 1 | Anchi Cheng | |
30 | 3 | Anchi Cheng | h2. What to do when primary storage is down |
31 | 1 | Anchi Cheng | |
32 | 3 | Anchi Cheng | We stop transfermonitor.sh so that it does not try to copy the frames from the buffer server. |
33 | 4 | Anchi Cheng | |
34 | leginon.cfg on the leginon processing server can also be changed to point the summed images to store on the buffer server. In that case, leginondb.BufferHostData should be set to be disabled during this period using phpMyAdmin. I will make a better gui for it later. |
||
35 | |||
36 | In our case, we do happen to have a backup storage server from an older system which also has a second copy of all softwares we use for data collection so we have been pointing the summed data there instead. |