I have gRPC service and Envoy proxy gateway.
The main problem that when I'am tring to make more than 6 tcp streams, all another streams are pending:
If I andrstood well, it happens because each browsers has a tcp limits:
Consequently I'am looking for a posibility to make 5 streams at 1 tcp connection.
envoy.yaml
static_resources:
listeners:
- name: grpc
address:
socket_address: { address: 0.0.0.0, port_value: 8080 }
filter_chains:
- filters:
- name: envoy.filters.network.http_connection_manager
typed_config:
"@type": type.googleapis.com/envoy.extensions.filters.network.http_connection_manager.v3.HttpConnectionManager
codec_type: AUTO
stat_prefix: ingress_http
stream_idle_timeout: 0s
route_config:
name: local_route
virtual_hosts:
- name: local_service
domains: ["*"]
routes:
- match: { prefix: "/ligric.protobuf.UserApis" }
route: { cluster: userapis_service, timeout: 0s }
cors:
allow_origin_string_match:
- exact: http://127.0.0.1:5000
allow_methods: GET, PUT, DELETE, POST, OPTIONS
allow_headers: grpc-accept-encoding,content-type,origin,referer,authorization,keep-alive,user-agent,cache-control,content-type,content-transfer-encoding,x-accept-content-transfer-encoding,x-accept-response-streaming,x-user-agent,x-grpc-web
expose_headers: grpc-status,grpc-message,x-envoy-upstream-service-time,custom-header-1
max_age: "1728000"
http_filters:
- name: envoy.filters.http.cors
typed_config:
"@type": type.googleapis.com/envoy.extensions.filters.http.cors.v3.Cors
- name: envoy.filters.http.grpc_web
typed_config:
"@type": type.googleapis.com/envoy.extensions.filters.http.grpc_web.v3.GrpcWeb
- name: envoy.filters.http.router
typed_config:
"@type": type.googleapis.com/envoy.extensions.filters.http.router.v3.Router
clusters:
# Apis
- name: userapis_service
type: logical_dns
lb_policy: round_robin
dns_lookup_family: V4_ONLY
connect_timeout: 0.25s
typed_extension_protocol_options:
envoy.extensions.upstreams.http.v3.HttpProtocolOptions:
"@type": type.googleapis.com/envoy.extensions.upstreams.http.v3.HttpProtocolOptions
explicit_http_config:
http2_protocol_options: {}
load_assignment:
cluster_name: grpc
endpoints:
- lb_endpoints:
- endpoint:
address:
socket_address:
address: host.docker.internal
port_value: 50052