我正在使用PSSH
在其他计算机上运行命令以使用parallel compute
实现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
有问题,但我不知道如何解决。
答案 0 :(得分:13)
谷歌搜索后,如果你没有输入pssh
选项,我发现-t
命令只会持续60秒。
所以,为了解决这个问题,我输入命令
pssh -P -h ip.txt -t 100000000 -i ipengine --file=~/parallel/test/ipcontroller-engine.json
该命令将在100000000秒后被杀死
答案 1 :(得分:5)
-t timeout --timeout timeout Make connections time out after the given number of seconds. With a value of 0, pssh will not timeout any connections.
答案 2 :(得分:3)
将pssh设置为超时0以禁用默认的60秒超时。 -t 0
pssh -P -t 0 -h host_file <COMMAND>
最佳答案表明,当你可以禁用它时会有很长的超时。