1

如何停止已启动的引擎: ipcluster engines --n=8 --daemonize

当前正在运行的进程如下所示:

/usr/bin/python /usr/local/bin/ipcluster engines --n=8 --daemonize
/usr/bin/python -m IPython.parallel.engine --profile-dir /home/ubuntu/.ipython/profile_default --cluster-id  --log-to-file --log-level=20

我不想跑killall python

4

1 回答 1

1

从客户处,您可以致电shutdown

import IPython.parallel as ipp
rc = ipp.Client()
# shutdown specific engines
rc.shutdown([1, 5])
# shutdown all engines:
rc.shutdown()
# shutdown everything, including the Hub
rc.shutdown(hub=True)
于 2015-06-19T17:50:07.557 回答