Parallel Python Learning

Source: Internet
Author: User

Parallel python is a python distributed computing module. Its function is to distribute tasks to the CPUs of each machine in the cluster in the form of functions and data. At the same time, parallel Python cluster construction supports auto discovery, which can easily build a self-organized distributed computing platform in the internal network. Parallel Python does not have DFS and can be understood as mapreduce.

It has been a while before learning pp. After practice, we can draw the following conclusions:

  1. It is not suitable for Distributed scenarios where a large amount of data is exchanged. It directly shows that the socket connection is automatically passed out and the remote machine is automatically disconnected from the server.
  2. Not SuitableProgram(The current version 1.6.1 has not been resolved)
  3. It is not suitable for the distribution of a large amount of computing, mainly because the server computing time is too long and will automatically disconnect from the client (control end ).
  4. Its controllability is not strong, and it cannot control the assignment of tasks. From its source code, we can see that tasks are allocated to the local idle CPU preferentially, then pop is used to process the idle CPU of any machine from the task queue.

 

Applicable scenarios (personal understanding ):

  1. Task Distribution, without the need for a large amount of data transmission; high computing programs and the computing time of each task is not long, the default is 20 s
  2. The distribution executable body does not have too complex dependencies between modules, functions, and variables.

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.