Skip to content

Advice on scaling strategy: 1 pod per transaction, each lasting 10–30s (with headroom) #6857

Discussion options

You must be logged in to vote

Hi,

About the "headroom“. If you want something more than you get back you can use scaling modifiers. With these you can make sure that you add something to the value you get. See also:

https://keda.sh/docs/2.17/concepts/scaling-deployments/#scaling-modifiers

About flapping, you can use scaleUp and/or scaleDown behaviors and include a stabilizationWindowSeconds of for example 300 seconds to prevent rapid fluctuations (flapping) in the number of replicas.

so;

advanced:
    horizontalPodAutoscalerConfig:
      behavior:
        scaleDown:
          stabilizationWindowSeconds: 300

see also:

https://keda.sh/docs/2.17/reference/scaledobject-spec/

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by emanuelef
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants