Multiprocessing on a remote host

Peter J. Holzer hjp-python at hjp.at
Sun Jun 10 18:35:11 EDT 2018


On 2018-03-21 09:27:37 -0400, Larry Martell wrote:
> Yeah, I saw that and I wasn't trying to reinvent the wheel. On this
> page https://docs.python.org/2/library/multiprocessing.html it says
> this:
> 
> The multiprocessing package offers both local and remote concurrency,
> effectively side-stepping the Global Interpreter Lock by using
> subprocesses instead of threads. Due to this, the multiprocessing
> module allows the programmer to fully leverage multiple processors on
> a given machine.
> 
> I took 'remote concurrency' to mean I could use it run a process on
> another host.

Yes.

> But I don't see how to do that, and I was asking if it was possible or
> am I misinterpreting the docs.

It is described on the same page, a little bit farther down:
https://docs.python.org/2/library/multiprocessing.html#using-a-remote-manager

        hp

-- 
   _  | Peter J. Holzer    | we build much bigger, better disasters now
|_|_) |                    | because we have much more sophisticated
| |   | hjp at hjp.at         | management tools.
__/   | http://www.hjp.at/ | -- Ross Anderson <https://www.edge.org/>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/python-list/attachments/20180611/ae5ce9a4/attachment.sig>


More information about the Python-list mailing list