Hello,
Summary
Experiencing memory spikes every hour with Kong 2.4.1 deployed with kubernetes arm64. No related to request count
Details
We are currently using Kong in DB mode as an API Gateway in our organization. The version of Kong open source currently in use is 2.4.1.
Configuration Details
We have deployed this via kubernetes with:
-
arm64 architecture
-
a replica count of 8 in one of the namespaces
-
per pod (replica) memory and CPU configurations as defined below:
resources:
requests:
memory: “1024M”
cpu: “0.5”
limits:
memory: “2048M”cpu: “2”
Issue
We’re seeing pod memory spikes at an hourly frequency in each of the pods in the deployment:
Some points to note:
- There is no significant difference in the number of requests during and outside the spike durations.
- This deployment is serving a peak request count of around 6.4k requests per second (~0.8k requests per second for each replica assuming correct load balancing).
- Further, the kong latency of requests also increases during these spikes, sometimes reaching ~2.5 seconds.
Ask
As this is causing issues for our internal and external consumers, and we’d like to continue using Kong as an API gateway, with a further increase in usage over time, can you please share with us:
-
Any leads on how to resolve this?
-
Else, any pointers on further investigation for this.
Please let us know if you need any further information from our side.
Thanks,
Himesh Bhatia