Uploaded image for project: 'Coin'
  1. Coin
  2. COIN-140

Do not use python for multiprocessing

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Won't Do
    • P2: Important
    • None
    • None
    • Other
    • None

    Description

      Multi-processing is useful for CPU heavy tasks such zipping/unzipping and it adds extra layer of security.

      However, there are fundamental problems with using multi-processing in python and that is Global Interpreter Lock (GIL) that prevents using native python profilers that would help with time-based performance analysis of our software.

      It would be better to use asyncio and event loop instead of multiprocessing. The only CPU heavy usage where we need multiprocessing is storage operations but it could be moved to webserver.go and the rest of the services could be moved to asyncio thread.

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              hehalmet Heikki Halmet
              aakeskimo Aapo Keskimölö
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes