Hey everyone,
I’ve been running a Kong Gateway setup to manage several microservices, but I’ve hit a bit of a snag recently with some unexpected latency spikes. My environment is a bit unique because I’m running some high-frequency automation scripts on the same underlying infrastructure that handles the gateway’s traffic.
The specific issue I’m seeing is that when I have the best roblox executor running for my automated testing and script execution, the Kong proxy starts to show occasional 504 gateway timeouts. I suspect it’s a resource contention issue, possibly related to how Lua handles these high-polling tasks or how the system allocates CPU cycles between the gateway and the background executor.
Has anyone else dealt with performance degradation when running external executors or heavy automation scripts alongside their gateway? I’m trying to figure out if I should move the automation to a completely separate node or if there are specific Nginx/Kong configuration tweaks—like adjusting the worker_priority or isolating the Lua VM—that could help mitigate the impact of these background tasks. Any advice on how to balance these high-demand processes without killing my API response times would be huge. Thanks!