We are seeing a huge kong latency (kong_latency_bucket{type=“kong”} from prometheus plugin) for one of our services which returns responses with payload size of over 100kb.
For response sizes below 10kb, the kong latency us under 5ms. For the ones over 10kb its starting to increase and goes all the way upto 50ms (800kb size).
We are using kong 0.14.0. I have tried the following,
- Disabled all plugins
- set nginx_proxy_proxy_buffers=10 1m in kong.conf
- Enabled/Disabled gzip compression from the service end
None of these helped reducing the kong latency.