parsl.executors.ipp_controller.Controller¶
-
class
parsl.executors.ipp_controller.
Controller
(public_ip=None, interfaces=None, port=None, port_range=None, reuse=False, log=True, ipython_dir='~/.ipython', mode='auto', profile='default')[source]¶ Start and maintain a IPythonParallel controller.
Parameters: - public_ip (str, optional) – Specific IP address of the controller, as seen from the engines. If
None
, an attempt will be made to guess the correct value. Default is None. - interfaces (str, optional) – Interfaces for ZeroMQ to listen on. Default is “*”.
- port (int or str, optional) – Port on which the iPython hub listens for registration. If set to
None
, the IPython default will be used. Default is None. - port_range (str, optional) – The minimum and maximum port values to use, in the format ‘<min>,<max>’ (for example: ‘50000,60000’).
If this does not equal None, random ports in
port_range
will be selected for all HubFactory listening services. This option overrides the port setting value for registration. - reuse (bool, optional) – Reuse an existing controller.
- ipython_dir (str, optional) – IPython directory for IPythonParallel to store config files. This will be overriden by the auto controller start. Default is “~/.ipython”.
- profile (str, optional) – Path to an IPython profile to use. Default is ‘default’.
- mode (str, optional) – If “auto”, controller will be created and managed automatically. If “manual” the controller is assumed to be created by the user. Default is auto.
-
__init__
(public_ip=None, interfaces=None, port=None, port_range=None, reuse=False, log=True, ipython_dir='~/.ipython', mode='auto', profile='default')[source]¶ Initialize self. See help(type(self)) for accurate signature.
Methods
__init__
([public_ip, interfaces, port, …])Initialize self. close
()Terminate the controller process and its child processes. start
()Start the controller. Attributes
client_file
Specify path to the ipcontroller-client.json file. engine_file
Specify path to the ipcontroller-engine.json file. - public_ip (str, optional) – Specific IP address of the controller, as seen from the engines. If