pyrolab.manager

pyrolab.manager#

Server Resources#

The scripts used for putting up and taking down Daemons and Workers from the multiprocessing module. Since child processes need to be able to import the script containing the target function, the target functions are contained within this module where no new processes are ever spawned. The prevents the recursive creation of new processes as the module is imported.

Server Resource Manager#

The server resource manager handles the putting up and taking down of Daemons for various instruments. To increase computer speed and processing capabilities in cases where multiple instruments are hosted from the same computer, each instrument is created in its own Daemon using the Python multiprocessing module.

Functions

running_time_human_readable(start[, end])

Return the time delta of two times (or one and now) in plain English.

Classes

DaemonProcessGroup(process, msg_queue, ...)

DaemonRunner(*args, name, daemonconfig, ...)

A process for running server daemons using Python's multiprocessing.

NameServerProcessGroup(process, msg_queue, ...)

NameServerRunner(*args[, name, nsconfig, ...])

A process for running nameservers using Python's multiprocessing.

ProcessManager()

A manager class for running a set of PyroLab processes.