Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use a different process for each device's grpc connection #324

Open
wants to merge 12 commits into
base: master
Choose a base branch
from

Conversation

henry54809
Copy link
Collaborator

GRPC only maintains 1 single channel (connection to the k8s IBL) in each process so LB across all testing devices can't happen. This PR, with no functional change, ensures each device can have its own connection to the IBL for proper LB.

@henry54809 henry54809 requested review from pbatta and anurag6 June 29, 2021 00:18
break
try:
if not progress or self._convert_and_handle(mac, progress):
print('Progress complete for %s' % mac)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Debug prints left by mistake?

@henry54809 henry54809 requested a review from grafnu July 7, 2021 15:56
@@ -50,30 +55,48 @@ def __init__(self, result_handler, target, unauth_vlan, tunnel_ip):

def start(self):
"""Start the client handler"""
grpc.channel_ready_future(self._channel).result(timeout=CONNECT_TIMEOUT_SEC)
self._stub = SessionServerStub(self._channel)
# Context may be set already
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure what to make of this comment. Can you expand it a bit or position it better? Is this to say that if the context is already set then this will throw a RuntimeError? If so, I'd either clarify that in the comment or move to the except clause.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants