In service mesh, from one client, how to connect to a specfic instance of an upstream service?

I have one redis service with 2 instances, redis-1 and redis-2, they are connected to mesh via envoy sidecar.

The redis client service can access redis service with load balancing normally.

However now I have a request to access just redis-1(or redis-2) instance only, how can I achieve that?


Hi @kimi.zhangkai,

Are these services deployed in Kubernetes? If so, are you using the transparent proxy feature?

If you are, you can set the TransparentProxy.DialedDirectly option to true in the service defaults configuration entry. This will allow the individual instances to be accessed directly by downstream services, as opposed to the traffic being load balanced across the available upstream instances.