[
https://issues.apache.org/jira/browse/BEAM-3645?focusedWorklogId=279660&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-279660
]
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_r305306747
##########
File path: sdks/python/apache_beam/runners/portability/fn_api_runner.py
##########
@@ -1142,6 +1278,39 @@ def __init__(self, state, provision_info):
self.data_server.start()
self.control_server.start()
+
+class GrpcWorkerHandler(WorkerHandler):
+ """An grpc based worker_handler for fn API control, state and data planes."""
+
+ _DEFAULT_SHUTDOWN_TIMEOUT_SECS = 5
+ _cached_grpc_server = None
+
+ def __init__(self, state, provision_info):
+ if not GrpcWorkerHandler._cached_grpc_server:
+ self.grpc_server = GrpcWorkerHandler._cached_grpc_server = \
+ GrpcServer(state, provision_info)
+ else:
+ self.grpc_server = GrpcWorkerHandler._cached_grpc_server
+
+ self.state = state
+
+ self.control_server = self.grpc_server.control_server
+ self.control_address = self.grpc_server.control_address
+ self.control_handler = self.grpc_server.control_handler
Review comment:
Here's where we should get the connection specific to this particular
worker.
----------------------------------------------------------------
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: 279660)
Time Spent: 25h (was: 24h 50m)
> 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: 25h
> 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)