ReconServer#
- class pulserver.proxy.ReconServer[source]#
Bases:
objectReconstructs each series of an MRD stream as it is received.
The server a
ReconProxyforwards to: one thread per client connection, which carries one series, a config naming its reconstruction plugin, the header, the acquisitions and aCLOSE. The config is a config file message, whose name is the plugin, or a config text naming it as a bare name or underparameters.config. Nothing is enriched. Workers, slots, the queue and the exam directories are those ofReconProxy.- Parameters:
plugins – Directories of reconstruction plugin files,
<plugin>.py, in search order.slots – Series reconstructed at once; derived from memory and the GPUs when
None.gpu_slots – Series reconstructed at once on each GPU, when
slotsisNone.spares – Warm worker processes waiting for a series.
recon_timeout – Seconds a worker may take after the stream ends before it is terminated and the client told so;
Nonewaits for its close.queue – Directory the queued series are written to; a temporary directory, removed on
close(), whenNone.slot_directory – Directory the slots are held in, shared with every other proxy on this host so they count against one set;
DEFAULT_SLOT_DIRECTORYwhenNone.exam_directory – Directory the caches of an exam are held in, shared with every other proxy on this host so a map one series measures reaches a series on another;
DEFAULT_EXAM_DIRECTORYwhenNone. An exam’s directory is removed when the last proxy on that exam lets go of it.
- Attributes:
workers (WorkerPool) – The spares assignments are taken from.
exams (ExamCacheManager) – The current exam and its directory.
queue (Path) – The queue directory.
Methods
Listen on |
|
Stop accepting clients, wait for running series and release the spares. |
|
Accept clients until |
|
Make |
Attributes
Port the server listens on. |