Kubernetes scaling up not fast enough (for K8 1.17 or below)

8/23/2020

Kubernetes 1.18 has a very nice ability to change auto-scaling going up through the behavior and scaleUp set. For 1.17, there's a way to control downscaling. Is there a parallel way to scale up faster? We are expecting very variable loads and our cluster isn't scaling up fast enough.

I am not sure what other info to include. I've been searching through the docs, but I cannot find anything that points me in the right direction.

-- Basalat Raja
hpa
kubernetes
scaling

1 Answer

8/24/2020

Not really.

Assuming you are referring to HPAs, you can define a behavior scaleUp Policy only if you are using K8s 1.18 or later (v2beta2 HPA API). For example:

behavior:
  scaleDown:
    stabilizationWindowSeconds: 300
    policies:
    - type: Percent
      value: 100
      periodSeconds: 15
  scaleUp: 👈
    stabilizationWindowSeconds: 0
    policies:
    - type: Percent
      value: 100
      periodSeconds: 15
    - type: Pods
      value: 4
      periodSeconds: 15
    selectPolicy: Max

Autoscaling API

✌️

-- Rico
Source: StackOverflow