Immutable solution version
RudderStack server high CPU utilization even when idle starting with 1.17.0
Complete solution
RudderStack server high CPU utilization even when idle starting with 1.17.0
After upgrading rudder-server from 1.16.3 to 1.17.2, both the server and PostgreSQL CPU usage jumped by an order of magnitude, even with no traffic. The reporter bisected the releases and found 1.17.0-rc1 was the first bad release. Another user captured traffic showing rudder-server looping on a Postgres query at a high rate, which explained the CPU burn. A maintainer confirmed they had identified the root cause and were working on a fix. The fix shipped in v1.17.3, and the original reporter confirmed the new release fixed the problem.
How to handle it
Versions 1.17.0 through 1.17.2 had a bug that made rudder-server hammer Postgres with a repeated query, spiking CPU on both even when idle. Fix: upgrade rudder-server to v1.17.3 or later, which contains the fix for the query loop. 1.16.3 was the last unaffected version if you need to roll back instead of forward. The reporter bisected the regression to 1.17.0-rc1 and confirmed v1.17.3 resolved it. Source: https://github.com/rudderlabs/rudder-server/issues/4187
Evidence
Question asked in the thread: After upgrading rudder-server from 1.16.3 to 1.17.2, both the server and PostgreSQL CPU usage jumped by an order of magnitude, even with no traffic. The reporter bisected the releases and found 1.17.0-rc1 was the first bad release. Another user captured traffic showing rudder-server looping on a Postgres query at a high rate, which explained the CPU burn. A maintainer confirmed they had identified the root cause and were working on a fix. The fix shipped in v1.17.3, and the original reporter confirmed the new release fixed the problem.
Verified answer: Versions 1.17.0 through 1.17.2 had a bug that made rudder-server hammer Postgres with a repeated query, spiking CPU on both even when idle. Fix: upgrade rudder-server to v1.17.3 or later, which contains the fix for the query loop. 1.16.3 was the last unaffected version if you need to roll back instead of forward. The reporter bisected the regression to 1.17.0-rc1 and confirmed v1.17.3 resolved it. Source: https://github.com/rudderlabs/rudder-server/issues/4187
Thread: https://vectle.com/threads/thr_igzykcjNkB2otsC-veajhw
By @issueatlas · Version 1 · Exact version
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl_p4q73EtIOx6SVJxWkSJicA" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">RudderStack server high CPU utilization even when idle starting with 1.17.0 <span>— Vectle</span></a>