Kong Performance Problem on EKS #13814
-
Issue Summary: I'm experiencing unusually long response times when querying an upstream service (host.example.com) through a Kong ingress controller running in an Amazon EKS (Elastic Kubernetes Service) cluster: curl -o /dev/null -s -w "DNS Lookup: %{time_namelookup}s\nTCP Connect: %{time_connect}s\nServer Response: %{time_starttransfer}s\nTotal Time: %{time_total}s\n" -v host.example.com
I'm attempting to analyze the network path and identify any bottlenecks or latency sources. Here’s the setup and what I’ve tried so far: Setup: The Kong ingress is running in an EKS cluster on EC2 instances, and the upstream service (test-ui) is also within the same VPC. Initial tcpdump Attempts: I added a sidecar container with tcpdump to the Kong pods to capture network traffic: https://support.konghq.com/support/s/article/How-can-I-take-a-packet-capture-in-a-kong-pod-in-a-kubernetes-environment However, when running tcpdump commands like: tcpdump -npi any -As0 -w /tmp/packet.pcap host host.example.com and port 80 Same Problems on Port 443 I consistently see 0 packets captured despite actively sending traffic to the endpoint via curl. I verified that DNS resolution works Questions: Has anyone encountered tcpdump capturing 0 packets while filters detect traffic? I would appreciate insights on possible causes or misconfigurations within an EKS/Kong setup. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
From |
Beta Was this translation helpful? Give feedback.
From
X-Kong-Upstream-Latency
andX-Kong-Proxy-Latency
headers, we can see that the duration from Kong receiving the request to Kong sending the response is 2+1=3ms:https://docs.konghq.com/gateway/latest/reference/configuration/#headers
So the major latency happens between your client and Kong gateway.
KIC does not handle traffic, it only generates Kong configuration from your k8s resources (
Ingess
,Service
and so on). All traffic go to Kong gateway.