Skip to content

Commit 2a27e07

Browse files
authored
Merge pull request #285 from Donders-Institute/opm
Opm
2 parents 5bdefd4 + dc91551 commit 2a27e07

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

streamer-agent/streamer-agent-opm-1.0/README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22

33
### How it works
44

5-
The agent listens on a local socket file `/var/run/streamer-agent-opm.sock` and takes each line of the data sent to the socket file as a FieldLine raw data file to be streamed.
5+
![Streamer dataflow for OPM raw data](opm_dataflow.svg)
6+
7+
The agent is a long-standing process run as a systemd daemon defined by [this unit file](debian/streamer-agent-opm.service). It listens on a local socket file `/var/run/streamer-agent-opm.sock` and takes each line of the data sent to the socket as a new FieldLine raw data file.
68

79
The agent then uploads the raw data file to the [streamer-ftp server](/streamer-ftp) using the `sftp` protocol. After that, it triggers [the streamer service](/streamer/lib/modalityOPM.js) to distribute the uploaded file to the corresponding project storage and the data repository collection.
810

@@ -42,4 +44,4 @@ Once the package is installed, the [mandatory environment variables](streamer-ag
4244

4345
### Streamer agent client
4446

45-
The [streamer agent client](streamer-agent-opm-cli) is to be run by data acquisition user.
47+
The [streamer agent client](streamer-agent-opm-cli) is to be run by data acquisition user. It can be run manually on-demand or use the systemd to trigger upon user logout using [the systemd unit file](debian/streamer-agent-opm.streamer-agent-opm-cli.user.service) provided.

streamer-agent/streamer-agent-opm-1.0/opm_dataflow.svg

Lines changed: 4 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)