Hi

*Question*
I'm wondering how to refresh the IP list in order to update subchannel 
list, after creating gRPC channel in Ruby using DNS resolution (which 
created several subchannels).

*Context*
I've setup gRPC communication between our services in a Kubernetes 
environnement two years ago but we are facing issues after pods restart.

I've setup a Kubernetes headless service (in order to get all pod IPs from 
the DNS).
I've managed to use load balancing with the following piece of code.
stub = 
ExampleService::Stub.new("headless-test-grpc-master.test-grpc.svc.cluster.local:50051",
 
:this_channel_is_insecure, timeout: 5, channel_args: {'grpc.lb_policy_name' 
=> 'round_robin'})

But when I create new pods after the connection or a reconnection, calls 
are not load balanced on these new servers.
That why I'm wondering what should I do to make the gRPC resolver refresh 
the list of IP and create expected new subchannels.

Is it something achievable? Which configuration should I use?

Thanks for your help

*Emmanuel Delmas* 
Backend Developer
CSE Member
https://github.com/papa-cool

-- 
You received this message because you are subscribed to the Google Groups 
"grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/grpc-io/fa1ce3a5-4c0e-420e-8562-1d031e023461n%40googlegroups.com.

Reply via email to