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
In trying to nail down why tests with echoheaders is problematic, @siggy and I decided to replicate the configuration of echoheaders: an nginx process with a built-in lua script. What we found was that lua scripting sends a chunked body for each line and that seems to cause latency issues and higher than normal cpu with linkerd.
And then with chunked encoding off in the backend, through linkerd (280% linkerd cpu). I turned chunked encoding off via the chunked_transfer_encoding off; directive. The entire config file can be found at perf-target-4:/etc/nginx/nginx.conf
Disabling chunked encoding allows us to get closer to our throughput targets. We should consider profiling linkerd with chunked encoding, especially if people are going to be testing us with echoheaders in the mix.
The text was updated successfully, but these errors were encountered:
In trying to nail down why tests with echoheaders is problematic, @siggy and I decided to replicate the configuration of echoheaders: an nginx process with a built-in lua script. What we found was that lua scripting sends a chunked body for each line and that seems to cause latency issues and higher than normal cpu with linkerd.
For reference, here is the nginx config for echoheaders
https://github.com/kubernetes/contrib/blob/master/ingress/echoheaders/nginx.conf
First, here's a baseline of slow_cooker against the chunked backend directly:
Now we try with nginx returning a chunk per line on in the backend, through linkerd (380% linkerd cpu, note there's only 4 cores on this host)
And then with chunked encoding off in the backend, through linkerd (280% linkerd cpu). I turned chunked encoding off via the
chunked_transfer_encoding off;
directive. The entire config file can be found atperf-target-4:/etc/nginx/nginx.conf
Disabling chunked encoding allows us to get closer to our throughput targets. We should consider profiling linkerd with chunked encoding, especially if people are going to be testing us with
echoheaders
in the mix.The text was updated successfully, but these errors were encountered: