Uploaded image for project: 'translate5'
  1. translate5
  2. TRANSLATE-3381

Start workers as plain processes instead using HTTP requests

    XMLWordPrintable

Details

    • High
    • Hide
      6.4.0: The current approach of triggering workers via HTTP is hard to debug and has a big overhead due the HTTP connections. Now the worker invocation can be switched to use raw processes - which is still under development and disabled by default but can be enabled for testing purposes in production.
      Show
      6.4.0: The current approach of triggering workers via HTTP is hard to debug and has a big overhead due the HTTP connections. Now the worker invocation can be switched to use raw processes - which is still under development and disabled by default but can be enabled for testing purposes in production.

    Description

      problem

      Currently the workers are triggered via HTTP requests, containing the whole overhead of creating HTTP requests and apache dealing with them. Also the workers are basically using and blocking free apache slots for ordinary requests.

      The overhead of a small import was enormous: 2 seconds for the import instead of 14 seconds. For bigger tasks that may not be relevant, but still it saves performance in not triggering apache and the network.

      The workers via HTTP requests are hard to debug, since its never really clear which apache process belongs to a running worker.

      solution

      Start the workers as independent processes.

      Open:

      • more logging and debugging for process based approach → worker and taskGuid can be listed with top now
      • use the pid as process id in the worker table - for dead worker entry recognition
      • implement dead running worker entry cleanup → on longer as a day base TRANSLATE-514
      • implement switch to change between processes and http → DONE

       

      Attachments

        Issue Links

          Activity

            People

              tlauria Thomas Lauria
              tlauria Thomas Lauria
              Axel Becher
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: