Uploaded image for project: 'Red Hat OpenStack Services on OpenShift'
  1. Red Hat OpenStack Services on OpenShift
  2. OSPRH-17942

[fork vs multiprocessing] 4 - Update threadgroup.py to use spawn in process-spawning helpers

XMLWordPrintable

    • Icon: Story Story
    • Resolution: Unresolved
    • Icon: Critical Critical
    • None
    • None
    • python-oslo-service
    • None
    • Sprint 12
    • 1
    • Important

      Goal: Where ThreadGroup exposes helpers that create processes, wrap them with spawn context so thread-management locks are not inherited in children.

      Acceptance Criteria:

      • Verify spawn_process_pool (or equivalent) switched to get_spawn_pool.
      • Integration test combining ThreadGroup + multiprocessing shows no freeze under load.
      • API behaviour remains backward-compatible.

      Additional Details:
      See https://pythonspeed.com/articles/python-multiprocessing/ and video explanation at https://youtu.be/RIc-Tut95YM?t=185.

              mbollo@redhat.com Daniel Mats Niklas Bengtsson
              hberaud Hervé Beraud
              rhos-dfg-pidone
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: