Saturday, August 10, 2013

How to prevent parallel python from connecting to localhost

How to prevent parallel python from connecting to localhost How to exclude parallel python from using localhost To do this in your script that you are calling to kick of your jobs just set:

job_server = pp.Server(ncpus=0, ppservers=ppservers)

 By setting the number of CPUS to 0 you will not see anything startup and then you get something like this:


Starting pp with 0 workers
Sum of primes below 5 6 7 is node001
Sum of primes below 6 7 8 is node002
Sum of primes below 7 8 9 is node001
Sum of primes below 4 5 6 is node002
Sum of primes below 9 8 1 is node001
Sum of primes below 1 2 3 is node001
Sum of primes below 3 4 5 is node001
Sum of primes below 3 3 2 is node002
Job execution statistics:
Name:local
 job count | % of all jobs | job time sum | time per job | job server
         5 |         62.50 |       0.1804 |     0.036082 | node001:60000
         3 |         37.50 |       0.1753 |     0.058426 | node002:60000
Time elapsed since server creation 0.495481967926
0 active tasks, 0 cores


No localhost!

No comments: