Open karpikpl opened 5 months ago
This may have to do more with the order processor not finding any items to process than the scaler reporting incorrect estimated lag. Is it possible that the old processor pod completed processing all changes in its change-feed, then shifted to second change-feed and processed items there too, before KEDA could increase the replica count for order processor? Is the estimate lag not going down to zero, even after giving some time, say 5 minutes or so?
It's been a while, but I remember it did not go to zero even after few hours and restarting processors
It seems that scaling metric is not precise enough.
Scaler is reporting items to process:
But processor is not getting any items:
I verified both are connected to the same DB using a test app that used same client for estimator and feed processor.
Expected Behavior
Pods are scaled to 0 when there's nothing to process. Pods are processing items when scaler reports estimated changes.
Actual Behavior
Scaler reports changes but processor is not doing anything.
Steps to Reproduce the Problem
Specifications