dispy

Port 51347 seems to be used by another program

自古美人都是妖i 提交于 2019-12-25 07:52:31
问题 On running the sample code given in the dispy documentation def compute(n): import time, socket time.sleep(n) host = socket.gethostname() return (host, n) if name == ' main ': import dispy, random cluster = dispy.JobCluster(compute) jobs = [] for i in range(10): # schedule execution of 'compute' on a node (running 'dispynode') # with a parameter (random number in this case) job = cluster.submit(random.randint(5,20)) job.id = i # optionally associate an ID to job (if needed later) jobs.append

Using dispy with port forwarding via ssh tunnel

点点圈 提交于 2019-12-13 02:39:39
问题 I have dispynode running on a remote server. I'm trying to open an SSH tunnel from my computer (client) and configure dispyJobCluster to use this tunnel. But it's not working. Am I not configuring this right ? Here's how I'm doing this : ( p.s . i don't have a deep knowledge in distributed & parallel computing nor networking, I'm a civil engineer so please excuse me if I don't use the right technical words sometimes ) SSH tunnel​ : plink -v -ssh -L 61:localhost:21 user@myserver.net This will