Hi all,
I want to limit the incoming HTTP2 connection in ingress gateway. but I don’t find the method to limit the incoming http2 connection number in both istio and envoy proxy doc, did I miss anything.
I can use DestinationRule->tcp->maxConnections to limit incoming TCP connection for TCP protocol (not for HTTP) because it is 1:1 from incoming to outgoing to upstream host for tcp connection.
But for HTTP2, the tcp maxConnections in DestinationRule is useless for the HTTP2 connection is limited by envoyproxy worker thread number. and this is not 1:1 between incoming and outgoing connection.
@ramaraochavali thanks for your information.
max_requests_per_connection can be configured by using DestinationRule in param "maxRequestsPerConnection” , and it is for envoyproxy cluster configuration, set it to 1 which mean the max stream id in the http/2 connection towards upstream is 1, and after 1 request, the http2 connection need to re-connect, I don’ think it is recommended method to use http/2. And I also don’t think it can limit the incoming http/2 connection number, because the upstream http/2 connection pool is separated from incoming http2 connection.