Services
Each web service chooses how it scales withscaling.type in inframan.yaml:
- Requests (concurrency)
- CPU and memory (hpa)
- Fixed (off)
Scales on concurrent requests per replica. When replicas average more than Best for: HTTP services whose cost is in handling requests.
target requests in flight, Knative adds one. Reacts within seconds, and can scale to zero. Needs Knative.inframan.yaml
cpu defaults to 70 and target to 100. Workers always run a fixed number of replicas.
Nodes
- Google Cloud
- AWS
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-systemcomponents, so that the autoscaler is allowed to move them and remove nodes.