# Intermittent 502 Bad Gateway when proxying high-concurrency requests through Kong Gateway

**URL:** <https://discuss.konghq.com/t/intermittent-502-bad-gateway-when-proxying-high-concurrency-requests-through-kong-gateway/14147>\
**Category:** General\
**Created:** [October 25, 2026, 1:41pm UTC](https://discuss.konghq.com/t/intermittent-502-bad-gateway-when-proxying-high-concurrency-requests-through-kong-gateway/14147 "2026-10-25T13:41:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![EthanMiller](https://avatars.discourse-cdn.com/v4/letter/e/2bfe46/32.png) [@EthanMiller](https://discuss.konghq.com/u/EthanMiller)\
**Post date:** [October 25, 2026, 1:41pm UTC](https://discuss.konghq.com/t/intermittent-502-bad-gateway-when-proxying-high-concurrency-requests-through-kong-gateway/14147/1 "2026-10-25T13:41:47Z")

</div>

We recently configured Kong Gateway 3.x in front of our backend services and client-facing [website](https://codexexecutor.ph/) to handle dynamic payload routing, automated version checks, and API rate limiting under peak user traffic. While standard request volume works without issue, we have started encountering intermittent 502 Bad Gateway responses during high-concurrency spikes when both the rate-limiting and proxy-cache plugins are active simultaneously.

A related problem is that upstream connection timeouts seem to trigger sporadically even though our origin server resource utilization remains well below normal thresholds. We also noticed that when clients query update endpoints in rapid succession, Kong occasionally drops the upstream keepalive connection, which temporarily increases latency and causes handshake failures across several edge nodes.

Could this be related to how the upstream keepalive pool or proxy buffers are configured when handling bursty traffic toward the website? Any advice on best practices for tuning upstream connection timeouts and DNS resolver caching to stabilize these high-throughput routes would be greatly appreciated.

---

<div class="post-metadata">

**Author:** ![discourse\_ai\_spam](https://avatars.discourse-cdn.com/v4/letter/d/c68b51/32.png) [@discourse\_ai\_spam](https://discuss.konghq.com/u/discourse_ai_spam)\
**Post date:** [October 25, 2026, 1:41pm UTC](https://discuss.konghq.com/t/intermittent-502-bad-gateway-when-proxying-high-concurrency-requests-through-kong-gateway/14147/2 "2026-10-25T13:41:50Z")

</div>

Unlisted on October 25, 2026, 1:41pm UTC



---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex036/uploads/konghq/original/2X/8/8651049fb84484276f21c943c975876b17c63898.png) [@system](https://discuss.konghq.com/u/system)\
**Post date:** [October 28, 2026, 5:54pm UTC](https://discuss.konghq.com/t/intermittent-502-bad-gateway-when-proxying-high-concurrency-requests-through-kong-gateway/14147/3 "2026-10-28T17:54:15Z")

</div>

Listed on October 28, 2026, 5:54pm UTC


