Parallel python--A simple distributed computing system

Source: Internet
Author: User

How to build a high-speed distributed computing platform? Parallel python for this purpose.


Parallel python (http://www.parallelpython.com/content/view/15/30/#QUICKCLUSTERS) is an open source module for distributed computing in Python. You can distribute the calculated pressure to multiple computers on a multi-core CPU or cluster. It is convenient to build a self-organizing distributed computing platform in the network.

Executes the server program on different nodes and proactively discovers the node that executes the server. Commands such as the following:

Node-1>./ppserver.py-a

Node-2>./ppserver.py-a

Node-3>./ppserver.py-a

Client

Import pp

Ppservers= ("*",) #自己主动发现模式

Job_server = pp. Server (Ppservers=ppservers)

Submit a running task

F1 = Job_server.submit (func1, ARGS1, DEPFUNCS1, modules1)

F2 = Job_server.submit (func1, ARGS2, DEPFUNCS1, modules1)

F3 = Job_server.submit (Func2, ARGS3, DEPFUNCS2, Modules2)

Search results

R1 = F1 ()

r2 = F2 ()

R3 = F3 ()


Copyright notice: This article blog original articles, blogs, without consent, may not be reproduced.

Parallel python--A simple distributed computing system

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.