[ 
https://issues.apache.org/jira/browse/BEAM-3645?focusedWorklogId=279651&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-279651
 ]

ASF GitHub Bot logged work on BEAM-3645:
----------------------------------------

                Author: ASF GitHub Bot
            Created on: 19/Jul/19 11:12
            Start Date: 19/Jul/19 11:12
    Worklog Time Spent: 10m 
      Work Description: robertwb commented on pull request #8979: [BEAM-3645] 
add multiplexing for python FnApiRunner
URL: https://github.com/apache/beam/pull/8979#discussion_r305087100
 
 

 ##########
 File path: sdks/python/apache_beam/runners/portability/fn_api_runner.py
 ##########
 @@ -1155,17 +1324,24 @@ def logging_api_service_descriptor(self):
         url='localhost:%s' % self.logging_port)
 
   def close(self):
-    self.control_handler.done()
-    self.data_plane_handler.close()
-    to_wait = [
-        self.control_server.stop(self._DEFAULT_SHUTDOWN_TIMEOUT_SECS),
-        self.data_server.stop(self._DEFAULT_SHUTDOWN_TIMEOUT_SECS),
-        self.state_server.stop(self._DEFAULT_SHUTDOWN_TIMEOUT_SECS),
-        self.logging_server.stop(self._DEFAULT_SHUTDOWN_TIMEOUT_SECS)
-    ]
-    for w in to_wait:
-      w.wait()
-    super(GrpcWorkerHandler, self).close()
+    # Wait all workers are done and close GRPC server.
+    WorkerHandler._worker_cnt -= 1
 
 Review comment:
   Locking?
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


Issue Time Tracking
-------------------

    Worklog Id:     (was: 279651)
    Time Spent: 23h 40m  (was: 23.5h)

> Support multi-process execution on the FnApiRunner
> --------------------------------------------------
>
>                 Key: BEAM-3645
>                 URL: https://issues.apache.org/jira/browse/BEAM-3645
>             Project: Beam
>          Issue Type: Improvement
>          Components: sdk-py-core
>    Affects Versions: 2.2.0, 2.3.0
>            Reporter: Charles Chen
>            Assignee: Hannah Jiang
>            Priority: Major
>             Fix For: 2.15.0
>
>          Time Spent: 23h 40m
>  Remaining Estimate: 0h
>
> https://issues.apache.org/jira/browse/BEAM-3644 gave us a 15x performance 
> gain over the previous DirectRunner.  We can do even better in multi-core 
> environments by supporting multi-process execution in the FnApiRunner, to 
> scale past Python GIL limitations.



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)

Reply via email to