You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the metrics that the HPA is consuming are volatile and in short intervals (near the default 5 minute window for the HPA scale down), the number of replicas can get into a state where they are continuously flapping. This could be mitigated through controlling the scaling down window (or scale up) of the HPA that KEDA is creating.
Specification
The ScaledObject could possibly be extended to account for the additional HPA configuration:
apiVersion: keda.k8s.io/v1alpha1
kind: ScaledObject
metadata:
name: {scaled-object-name}
spec:
scaleTargetRef:
deploymentName: {deployment-name} # must be in the same namespace as the ScaledObject
containerName: {container-name} #Optional. Default: deployment.spec.template.spec.containers[0]
pollingInterval: 30 # Optional. Default: 30 seconds
cooldownPeriod: 300 # Optional. Default: 300 seconds
minReplicaCount: 0 # Optional. Default: 0
maxReplicaCount: 100 # Optional. Default: 100
triggers:
# {list of triggers to activate the deployment}
behavior:
scaleDown:
policies:
- type: Pods
value: 4
periodSeconds: 60
- type: Percent
value: 10
periodSeconds: 60
The text was updated successfully, but these errors were encountered:
This is definitely something that we should support and should be easy to implement. Only minor problem is that we will need to bump k8s version of deps and libraries used by Operator and Metrics server to v18.2 (they are currently on v17.4)
It would be ideal to control how scaling works for the HPA that the KEDA Operator provisions. Kubernetes 1.18 offers this functionality in the HPA v2beta2 to set scaling policies on an individual HPA through the
behavior
field - https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/#support-for-configurable-scaling-behaviorUse-Case
If the metrics that the HPA is consuming are volatile and in short intervals (near the default 5 minute window for the HPA scale down), the number of replicas can get into a state where they are continuously flapping. This could be mitigated through controlling the scaling down window (or scale up) of the HPA that KEDA is creating.
Specification
The
ScaledObject
could possibly be extended to account for the additional HPA configuration:The text was updated successfully, but these errors were encountered: