From 1fcbaa3fb320ce9acc4b923cc982069b8c4a48c2 Mon Sep 17 00:00:00 2001 From: Andrej Babic Date: Mon, 19 Jul 2021 14:19:50 +0200 Subject: [PATCH] Add manual instructions on how to start pipeline --- README.md | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/README.md b/README.md index 3d97181..9806664 100644 --- a/README.md +++ b/README.md @@ -102,6 +102,33 @@ ln -s "$(pwd)""/""sf_stream" /usr/bin/sf_stream ln -s "$(pwd)""/""sf_writer" /usr/bin/sf_writer ``` +### Integration testing +Apart from unit-testing an integration pipeline can be started on your local +machine or dedicated server. + +#### Manual start +To manually start the integration pipeline you will have to start the following +containers: + +UDP generators: +```bash +docker run -d --rm --net=host --name=udp-sim paulscherrerinstitute/std-daq-buffer ./std_udp_sim example_detector.json 16 +``` + +4 UDP receivers: +```bash +for i in {0..3}; do docker run --rm -d --net=host --ipc=host --shm-size=8G -v /tmp:/tmp --name=udp-recv-${i} paulscherrerinstitute/std-daq-buffer ./std_udp_recv example_detector.json ${i} 16; done +``` + +1 UDP synchronizer: +```bash +docker run -d --rm --net=host -v /tmp:/tmp --name=udp-sync paulscherrerinstitute/std-daq-buffer ./std_udp_sync example_detector.json 16 +``` + +1 Image assembler: +```bash +docker run -d --rm --net=host --name=udp-sim paulscherrerinstitute/std-daq-buffer ./std_udp_sim example_detector.json 16 +``` ### Warnings #### UDP recv tests failing @@ -112,6 +139,7 @@ problems is the rmem limit. Please increase your rmem_max to something large: ```bash echo 2147483646 > /proc/sys/net/core/rmem_max ``` +You need to do this on your host when running the integration pipeline. #### Zeromq