I have created a grpc python client with round robin load-balancing policy
self.channel = grpc.insecure_channel(self.host,options=[("grpc.lb_policy_name",
"round_robin")])
Passed first parameter as host and second parameter as a load-balancing policy.
self.blocking_stub = dict_pb2_grpc.ExampleServiceStub(self.channel)
passed channel to the stub as well.
self.executor = concurrent.futures.ThreadPoolExecutor(
max_workers=self.thread_pool_size
)
I am clear till this point the next step is I want to pass executor
with custom number of threads. How can I pass executor to grpc.insecure_channel
?
I have gone through (something?), but didn't find anything related to this.