Skip to main content
Autoscaling happens at two levels. Services add and remove replicas with their load. Node pools add and remove nodes so there’s room for those replicas, and no more.

Services

Each web service chooses how it scales with scaling.type in inframan.yaml:
Scales on concurrent requests per replica. When replicas average more than target requests in flight, Knative adds one. Reacts within seconds, and can scale to zero. Needs Knative.
inframan.yaml
Best for: HTTP services whose cost is in handling requests.
Without settings, a service runs between 1 and 5 replicas. cpu defaults to 70 and target to 100. Workers always run a fixed number of replicas.
Autoscaling on CPU percentage is relative to the CPU request. Set a realistic cpu_request under resources, or the autoscaler reacts too early or too late. See Right-sizing.

Nodes

Each node pool autoscales between its Min nodes and Max nodes. When pods can’t be scheduled for lack of room, the pool adds a node. When a node has been underused for a while and its pods fit elsewhere, the pool removes it.
  • Application pools default to a minimum of 0, so a pool with nothing on it costs nothing.
  • The system pool runs 1 to 3 nodes on non-production infrastructures.
  • Inframan adds disruption budgets for a few kube-system components, so that the autoscaler is allowed to move them and remove nodes.