-
Notifications
You must be signed in to change notification settings - Fork 143
Description
Report
The HTTP add-on external scaler is not respecting the scaledownPeriod setting from HTTPScaledObject. Pods are being terminated after ~10 minutes instead of the configured 30 minutes (1800 seconds).
spec
hosts:
- abc.com
pathPrefixes:
- /api/prepress-validation
replicas:
max: 2
min: 0
scaleTargetRef:
apiVersion: apps/v1
kind: Deployment
name: prepress-validation
port: 4000
service: prepress-validation
scaledownPeriod: 1800
scalingMetric:
requestRate:
granularity: 1s
targetValue: 15
window: 1m0s
Expected Behavior
The HTTP add-on external scaler should respect the scaledownPeriod: 1800 (30 minutes) setting from HTTPScaledObject. When no HTTP requests are active, the http scaler should scale down only after 30 minutes of inactivity, keeping the pod running for the full cooldown period.
Actual Behavior
The external scaler when no HTTP requests are active, KEDA http add on scales down the deployment to 0 and terminate pods after approximately 10 minutes instead of the configured 30 minutes.
Steps to Reproduce the Problem
- Create HTTPScaledObject with scaledownPeriod: 1800 (30 minutes)
- Send HTTP traffic to trigger scale-up to 1 replica
- Stop all HTTP traffic to the service
- Observe pod termination after ~10 minutes instead of 30 minutes
- Check KEDA operator logs showing scale-down every 5 minutes
Logs from KEDA HTTP operator
2025-11-21T05:19:37Z INFO scaleexecutor Successfully updated ScaleTarget {"scaledobject.Name": "prepress-validation", "scaledObject.Namespace": "qa", "scaleTarget.Name": "prepress-validation", "Original Replicas Count": 0, "New Replicas Count": 1}
2025-11-21T05:29:51Z INFO scaleexecutor Successfully set ScaleTarget replicas count to ScaledObject minReplicaCount {"scaledobject.Name": "prepress-validation", "scaledObject.Namespace": "eng-dev", "scaleTarget.Name": "prepress-validation", "Original Replicas Count": 1, "New Replicas Count": 0}
HTTP Add-on Version
0.11.1
Kubernetes Version
1.32
Platform
Amazon Web Services
Anything else?
No response
Metadata
Metadata
Assignees
Labels
Type
Projects
Status