Pssh, Timeout killed by signal 9

I use PSSHto run commands on other machines to implement parallel computeusing IPyParallel, but I ran into a problem, my command

pssh -P -h ip.txt -i ipengine --file=~/parallel/test/ipcontroller-engine.json

And after a while it returned:

[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

I think something is wrong with PSSH, but I do not know how to solve it.

+4
source share
2 answers

After googling, I found that the command psshwill only last 60 seconds if you do not enter an option -t. So, to solve this problem, I type the command

pssh -P -h ip.txt -t 100000000 -i ipengine --file=~/parallel/test/ipcontroller-engine.json

And the team will be killed in 100000000 seconds

+8
source
-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.
+3
source

Source: https://habr.com/ru/post/1611229/


All Articles