206fe90f80
Compiler pods average ~2Gi memory but request 1Gi, so the scheduler overpacks nodes and the HPA's utilisation target is skewed. - raise compiler requests to 1 cpu / 2Gi and limits to 4 cpu / 4Gi - scale up faster (30s window, 75%) and down slower (600s window) Reviewed-on: #524 Co-authored-by: unkin-agent <unkin-agent@unkin.net> Co-committed-by: unkin-agent <unkin-agent@unkin.net>
38 lines
862 B
YAML
38 lines
862 B
YAML
apiVersion: autoscaling/v2
|
|
kind: HorizontalPodAutoscaler
|
|
metadata:
|
|
labels:
|
|
app.kubernetes.io/component: puppetserver-compilers
|
|
app.kubernetes.io/instance: puppetserver
|
|
app.kubernetes.io/name: puppetserver
|
|
app.kubernetes.io/version: 8.8.0
|
|
name: puppetserver-compiler-autoscaler
|
|
namespace: puppet
|
|
spec:
|
|
scaleTargetRef:
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
name: puppetserver-compiler
|
|
minReplicas: 2
|
|
maxReplicas: 5
|
|
metrics:
|
|
- resource:
|
|
name: cpu
|
|
target:
|
|
averageUtilization: 75
|
|
type: Utilization
|
|
type: Resource
|
|
behavior:
|
|
scaleUp:
|
|
stabilizationWindowSeconds: 30
|
|
policies:
|
|
- type: Percent
|
|
value: 75
|
|
periodSeconds: 15
|
|
scaleDown:
|
|
stabilizationWindowSeconds: 600
|
|
policies:
|
|
- type: Percent
|
|
value: 25
|
|
periodSeconds: 60
|