Fix KEDA External Scaler gRPC Connection and Goroutine LeakFix KEDA External Scaler gRPC Connection and Goroutine Leak
The network for creativity
Join 1.25M professional creatives like you
Connect with clients, get discovered, and run your business 100% commission-free
Creatives on Contra have earned over $150M and we are just getting started
The bug was a loop with no way out.
KEDA's external scaler pools gRPC connections. Each one had a cleanup goroutine waiting for the connection to shut down before it would close it. The only code that ever closed it was that goroutine.
So every scaler address KEDA ever touched kept a connection and a parked goroutine alive for the life of the process. Nothing crashed. They just piled up, quietly, one per address, and never left.
The fix ties each connection to the scalers using it. When the last one closes, the connection closes, and reuse across ScaledObjects stays exactly as it was. I measured the leak on a running operator, measured it gone after, and wrote tests that fail if it ever comes back.
Merged in KEDA, #8193 and #8213.
Post image
Back to feed
The network for creativity
Join 1.25M professional creatives like you
Connect with clients, get discovered, and run your business 100% commission-free
Creatives on Contra have earned over $150M and we are just getting started