load balancer behavior after changing service to headless

29 views
Skip to first unread message

Michael Fong

unread,
May 22, 2023, 6:08:44 PM5/22/23
to envoy-users

Hi all,

We are looking for help/advise/pointer on the particular problem below.

We want to use client-side load balancing from envoy, and we change our server application service to headless.

We now observe some behavior change that client grpc requests of the same connection do not go to the same pod; in other words, the requests could be routed to any of the application pod (depending on which LB strategy we pick). We want to know if there is a way make envoy always stay a particular pod for the same client connection once it's established?

Given that the server application might be stateful and perform based on client state kept in its memory.

Thanks in advance!

Yan Avlasov

unread,
Jun 1, 2023, 3:49:53 PM6/1/23
to Michael Fong, envoy-users
It sounds like what you want is to run Envoy as a TCP proxy not HTTP proxy.

--
You received this message because you are subscribed to the Google Groups "envoy-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to envoy-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/envoy-users/8114d88d-d701-4c15-9255-cc4bde385debn%40googlegroups.com.

Tony Allen

unread,
Jun 28, 2023, 6:32:03 PM6/28/23
to Michael Fong, envoy-users
Alternatively, you may want gRPC streaming instead of unary requests.

Reply all
Reply to author
Forward
0 new messages