ipyparallel,如何设置节点的进程号

ipyparallel, how to set process numbers of a node

我知道我可以在 ipengine --profile=/path/to/ipcontroller-engine.json 之前启动引擎。并且有 len(c.ids) 个进程。

但是,如何设置每个远程节点上的进程数 运行? ipengine --profile=/path/to/ipcontroller-engine.json 似乎只是在远程机器上启动了一个进程。

ipengine 启动一个引擎(进程)。如果你想要多个引擎,你需要多次调用ipengine。一种快捷方式是 ipcluster engines 命令:

ipcluster engines -n 4

将启动 4 个引擎。