eventhub scaler not working on new hubs where no storage checkpoint is initialized #797
Closed
Description
We configure our eventhub scaledObject with a minimum value of 0. When we create new hubs and start messaging, no function is scaling up. The reason is, there is initially no checkpoint until the first function is started.
so we have to delete the scaledObject after deployment and scale manually to 1 to initialize the storage checkpoint.
Expected Behavior
When a new hub is created and messages are available, then the eventhub scaler should react with a suitable metric.
Actual Behavior
the eventhub scaler returns no metric when noch storage checkpoint is available.
Steps to Reproduce the Problem
- create a new hub and send messages to it
- deploy a function with a scaledObject with a min instance value to zero
- no function is scaling up, even if messages exists
- delete the scaledObject and scale to 1 manually
- redeploy the scaledObject and all works normally
Specifications
- **KEDA Version: 1.4
- Kubernetes Version: 1.15.7
- Scaler(s): eventhub-scaler