adaptation of scripts to run on sf-daq-4

This commit is contained in:
Dmitry Ozerov
2020-11-04 09:23:09 +01:00
committed by Data Backend account
parent 344ea97008
commit fe39841df9
9 changed files with 112 additions and 12 deletions
+28
View File
@@ -0,0 +1,28 @@
export PATH=/home/dbe/miniconda3/bin:$PATH
source /home/dbe/miniconda3/etc/profile.d/conda.sh
conda deactivate
conda activate vis
PORT=5002
PORT_BACKEND=9002
H=`echo ${HOSTNAME} | sed 's/.psi.ch//'`
BACKEND=${H}
case ${H} in
'sf-daq-4')
CORES='36,37'
;;
*)
CORES='2'
esac
taskset -c ${CORES} \
streamvis alvra --allow-websocket-origin=${H}:${PORT} \
--allow-websocket-origin=sf-daq-alvra:${PORT} --port=${PORT} \
--address tcp://${BACKEND}:${PORT_BACKEND} \
--page-title 4p5M_Alvra