mirror of
https://github.com/paulscherrerinstitute/sf_daq_buffer.git
synced 2026-08-08 02:02:25 +02:00
Since processing of live data can be done at 100Hz it would be more difficult to stream the full rate with a PUB/SUB mode. To support distributed live analysis we move to PUSH/PULL model, since we can support only one live processing at a time anyway (network constraints when working with large detectors).
14 lines
499 B
C++
14 lines
499 B
C++
namespace stream_config
|
|
{
|
|
// N of IO threads to receive data from modules.
|
|
const int STREAM_ZMQ_IO_THREADS = 2;
|
|
// How long should the RECV queue be.
|
|
const size_t STREAM_RCVHWM = 100;
|
|
// Size of buffer between the receiving and sending part.
|
|
const int STREAM_FASTQUEUE_SLOTS = 5;
|
|
// If the modules are offset more than 1000 pulses, crush.
|
|
const uint64_t PULSE_OFFSET_LIMIT = 1000;
|
|
// SNDHWM for live processing socket.
|
|
const int PROCESSING_ZMQ_SNDHWM = 10;
|
|
}
|