This is a perfect scenario for a custom LB policy.  Since LB policies form
a tree, you could easily have your policy delegate to either a PickFirst or
RoundRobin policy depending on whether or not the LB is up.  Just have your
policy define a ForwardingLoadbalanceHelper whose updateBalancingState
passes the picker from the oppropriate downstream policy.

On Fri, Nov 3, 2023 at 12:29 PM Krishna Sai Veera Reddy <
krishnasaiveerareddy...@gmail.com> wrote:

> Hello All,
>
> I am working on a gRPC client that connects to a gRPC service fronted by
> an LB but would like the client to automatically fallback to using
> round-robin DNS to directly connect to the backend servers when the LB goes
> down. How do I go about this? Would I need to implement my own custom LB
> policy? Any help is appreciated and thanks in advance!
>
> --
> 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 grpc-io+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/grpc-io/df8f4a85-5020-4c68-bb94-cbea67d7c75an%40googlegroups.com
> <https://groups.google.com/d/msgid/grpc-io/df8f4a85-5020-4c68-bb94-cbea67d7c75an%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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 grpc-io+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/grpc-io/CANuT3qXT1s%3DPZmL8K9vaVMthqebFJ0vD0TSJVeNHFEv1LQeDbw%40mail.gmail.com.

Reply via email to