我使用PSSH在其他机器上运行命令来实现使用IPyParallel的parallel compute,但是我遇到了一个问题,我的命令是
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有问题,但我不知道如何解决。
发布于 2015-10-13 07:44:37
在googling之后,我发现如果不输入pssh选项,那么-t命令只会持续60秒。因此,为了解决这个问题,我输入命令
pssh -P -h ip.txt -t 100000000 -i ipengine --file=~/parallel/test/ipcontroller-engine.json100000000秒后命令就会被杀死
更新2020/08/28
谢谢@Nicolas Thery和@Setzer22,您可以设置-t 0来禁用超时功能,而不是设置任意大的值。
发布于 2018-04-23 21:59:34
将pssh设置为具有0的超时,以禁用默认的60秒超时。-t 0
pssh -P -t 0 -h host_file <COMMAND>最上面的答案是一个很长的超时时间,当你只需要禁用它。
发布于 2016-03-04 13:57:38
-t超时--超时使连接在给定的秒数之后超时。如果值为0,pssh将不会超时任何连接。
https://stackoverflow.com/questions/33073144
复制相似问题