You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Such TLS termination allows HAProxy to spread requests between pods.
I had used "Grpc 2.46.6" for client and service LB worked pretty well.
But recently I've changed my client using "Grpc.Net.Client 2.63.0" and LB fails - HAProxy sends requests to single pod.
Question: how to configure a dotnet gRPC client for successful service load balancing?
Service:
builder.WebHost.ConfigureKestrel(options =>{ options.ListenAnyIP(settings.Http2Port,listenOptions =>{// Http2 and https for gRPC. listenOptions.Protocols = HttpProtocols.Http2; listenOptions.UseHttps(settings.PathToPfx, settings.PfxPassword);}); options.ListenAnyIP(settings.Http1Port,listenOptions =>{// Http1 for Prometheus and OpenShift probes. listenOptions.Protocols = HttpProtocols.Http1;}); options.Limits.MaxRequestBodySize =null;});
builder.Services.AddGrpc(options =>{ options.EnableDetailedErrors =true; options.MaxReceiveMessageSize =int.MaxValue; options.MaxSendMessageSize =int.MaxValue;});varapp= builder.Build();
app.MapGrpcService<GrpcService>();
app.MapGrpcService<GrpcStreamService>();
My gRPC service is deployed in the OpenShift. I configured a route in such way:
Such TLS termination allows HAProxy to spread requests between pods.
I had used "Grpc 2.46.6" for client and service LB worked pretty well.
But recently I've changed my client using "Grpc.Net.Client 2.63.0" and LB fails - HAProxy sends requests to single pod.
Question: how to configure a dotnet gRPC client for successful service load balancing?
Service:
Grpc client:
Grpc.Net.Client client.
The text was updated successfully, but these errors were encountered: