mirror of
https://github.com/paulscherrerinstitute/sf_daq_buffer.git
synced 2026-06-06 15:28:42 +02:00
adaptation of scripts to run on sf-daq-4
This commit is contained in:
committed by
Data Backend account
parent
344ea97008
commit
fe39841df9
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user