Skip to content

Conversation

HonakerM
Copy link
Contributor

What this PR does / why we need it:
This PR exposes another GRPC server option to allow for greater customization of deployment runtimes. This also updates the remote module connection to better retry requests when people use the above option.

Special notes for your reviewer:

If applicable:

  • this PR contains documentation
  • this PR contains unit tests
  • this PR has been tested for backwards compatibility

Signed-off-by: Michael Honaker <Michael.Honaker@ibm.com>
@HonakerM HonakerM force-pushed the expose_grpc_concurrency branch from eec7100 to b7b4c96 Compare September 10, 2024 15:48
@HonakerM
Copy link
Contributor Author

@gabe-l-hart not sure if this one needs new tests. It's just exposing an option of the underlying grpc server.

Copy link
Collaborator

@gabe-l-hart gabe-l-hart left a comment

Choose a reason for hiding this comment

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

@@ -84,6 +84,7 @@ def __init__(
thread_pool=self.thread_pool,
interceptors=(PROMETHEUS_METRICS_INTERCEPTOR,),
options=(self.config.runtime.grpc.options or {}).items(),
maximum_concurrent_rpcs=self.config.runtime.grpc.maximum_concurrent_rpcs,
Copy link
Collaborator

Choose a reason for hiding this comment

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

Interesting that this does not go into the options arg? Assuming this is correct, then this looks good to me

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah its kinda annoying. TBH I thought this was an option for the longest time

@gabe-l-hart gabe-l-hart merged commit bb5cf3f into caikit:main Sep 10, 2024
8 checks passed
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.

2 participants