atlassian / escalator

Escalator is a batch or job optimized horizontal autoscaler for Kubernetes
Apache License 2.0
662 stars 59 forks source link

Handle edge case for metrics when on 0 nodes #157

Closed Jacobious52 closed 5 years ago

Jacobious52 commented 5 years ago

With the new scale to 0 functionality #155 the usage percentage metrics that get emitted when scaling up from 0 nodes is Float64.Max. This throws off alerting and monitoring averages. This issue is to add a special case in the metrics to output a special value of 0 for usage when the asg is at 0 nodes, and pending pods require scale up. The actual value is N/A but to keep it simple a 0 value is acceptable for this case