Description:
Hi everyone!
We are experiencing an issue with Envoy when handling requests with large payloads (around 3MB - without converting to binary).
We use Istio and have identified a significant processing delay in the sidecar of the pods receiving the requests.
For smaller payloads (around 3KB), the processing time is 1.68ms, whereas for larger payloads (around 3MB), the time increases to 2.57s.
We are using the GRPC protocol for communication and have tested both unary and stream requests, but without any significant improvement.
There are no noticeable changes in the CPU and memory metrics of the sidecar.
We have also tried configuring kernel parameters and flow-control settings, but without success:
We performed CPU profiling during the requests and identified that the Envoy::Network::ConnectionImpl::onWriteReady call is the main time-consuming operation.
Has anyone experienced something similar or have any suggestions for tests we can perform to identify the issue and improve the proxy time?
Title: Slow proxy when request has large payloads
Description: Hi everyone! We are experiencing an issue with Envoy when handling requests with large payloads (around 3MB - without converting to binary). We use Istio and have identified a significant processing delay in the sidecar of the pods receiving the requests. For smaller payloads (around 3KB), the processing time is 1.68ms, whereas for larger payloads (around 3MB), the time increases to 2.57s. We are using the GRPC protocol for communication and have tested both unary and stream requests, but without any significant improvement. There are no noticeable changes in the CPU and memory metrics of the sidecar.
We have also tried configuring kernel parameters and flow-control settings, but without success:
We performed CPU profiling during the requests and identified that the Envoy::Network::ConnectionImpl::onWriteReady call is the main time-consuming operation.
Has anyone experienced something similar or have any suggestions for tests we can perform to identify the issue and improve the proxy time?
cc @eduardobaitello