pssh,超时,被信号9杀死
我正在使用pssh,超时,被信号9杀死,ssh,parallel-processing,Ssh,Parallel Processing,我正在使用PSSH在其他机器上运行命令,以使用IPyParallel实现并行计算,但我遇到了一个问题,我的命令是 pssh -P -h ip.txt -i ipengine --file=~/parallel/test/ipcontroller-engine.json 过了一会儿,它又回来了: [1] 11:54:41 [FAILURE] 192.168.0.112 Timed out, Killed by signal 9 Stderr: 2015-10-12 11:53:41.593 [I
PSSH
在其他机器上运行命令,以使用IPyParallel
实现并行计算
,但我遇到了一个问题,我的命令是
pssh -P -h ip.txt -i ipengine --file=~/parallel/test/ipcontroller-engine.json
过了一会儿,它又回来了:
[1] 11:54:41 [FAILURE] 192.168.0.112 Timed out, Killed by signal 9
Stderr: 2015-10-12 11:53:41.593 [IPEngineApp] Loading url_file u'/home/fit/parallel/test/ipcontroller-engine.json'
2015-10-12 11:53:41.595 [IPEngineApp] Registering with controller at tcp://192.168.0.115:59413
2015-10-12 11:53:41.628 [IPEngineApp] Starting to monitor the heartbeat signal from the hub every 3010 ms.
2015-10-12 11:53:41.630 [IPEngineApp] Completed registration with id 0
[2] 11:54:41 [FAILURE] 192.168.0.104 Timed out, Killed by signal 9
Stderr: 2015-10-12 11:53:41.647 [IPEngineApp] Loading url_file u'/home/fit/parallel/test/ipcontroller-engine.json'
2015-10-12 11:53:41.648 [IPEngineApp] Registering with controller at tcp://192.168.0.115:59413
2015-10-12 11:53:41.682 [IPEngineApp] Starting to monitor the heartbeat signal from the hub every 3010 ms.
2015-10-12 11:53:41.684 [IPEngineApp] Completed registration with id 1
我认为
PSSH
有问题,但我不知道如何解决。在谷歌搜索后,我发现PSSH
命令如果不输入-t
选项,只会持续60秒。
所以,要解决这个问题,我键入命令
pssh -P -h ip.txt -t 100000000 -i ipengine --file=~/parallel/test/ipcontroller-engine.json
命令将在100000000秒后终止
更新2020/08/28
感谢@和@,您可以设置-t
0来禁用超时功能,而不是设置任意大的值
将pssh设置为具有0的超时,以禁用默认的60秒超时<代码>-t 0
pssh -P -t 0 -h host_file <COMMAND>
pssh-P-t0-h主机文件
最上面的答案是一个很长的超时时间,你可以禁用它。给它一些上下文,除了?-t0到disable@NicolasThery禁用什么?@GoingMyWay您可以设置
-t0
来禁用超时功能,而不是设置任意大的值。@Setzer22是的,对。近5年后,你们还使用pssh吗?@Setzer22我只是好奇而已。右pssh
是运行任务的好工具。这就是我几年前使用的原因。
pssh -P -t 0 -h host_file <COMMAND>