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, the exam directories and the refusal of a stream that ends without itsCLOSEare those ofReconProxy.- Parameters:
plugins (PluginPath) – Directories of reconstruction plugin files,
<plugin>.py, in search order.slots (int, default=None) – Series reconstructed at once; derived from memory and the GPUs when
None.gpu_slots (int, default=1) – Series reconstructed at once on each GPU, when
slotsisNone.spares (int, default=1) – Warm worker processes waiting for a series.
recon_timeout (float, default=None) – Seconds a worker may take after the stream ends before it is terminated and the client told so;
Nonewaits for its close.queue (Path | str, default=None) – Directory the queued series are written to; a temporary directory, removed on
close(), whenNone.slot_directory (Path | str, default=None) – 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 (Path | str, default=None) – 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. A directory the proxy creates is readable by its owner alone; one that exists is used with the permissions it has. An exam’s directory is removed when the last proxy on that exam lets go of it.save_to (Path | str, default=None) – Directory each series is kept in, as received; not kept when
None.idle_timeout (float, default=None) – Seconds without a client after which
serve()returns; never whenNone.
- 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. |