Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-2764

Simplify process structure of PySpark daemon / worker launching process

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.1.0
    • Component/s: PySpark
    • Labels:
      None

      Description

      PySpark's daemon-based worker factory has a very complicated process structure that I've always found confusing. The per-java-worker daemon.py process launches a numCores-sized pool of subprocesses, and those subprocesses launching the actual worker processes that process data.

      I think we can simplify this by having daemon.py launch the workers directly without this extra layer of indirection. See my comments on the pull request that introduced daemon.py: https://github.com/mesos/spark/pull/563

        Attachments

          Activity

            People

            • Assignee:
              joshrosen Josh Rosen
              Reporter:
              joshrosen Josh Rosen
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: