Raise puppetserver compiler requests to match real usage (#524)
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>
This commit was merged in pull request #524.
This commit is contained in:
@@ -32,11 +32,11 @@ spec:
|
||||
imagePullPolicy: IfNotPresent
|
||||
resources:
|
||||
limits:
|
||||
cpu: 2
|
||||
memory: 3072Mi
|
||||
cpu: 4
|
||||
memory: 4096Mi
|
||||
requests:
|
||||
cpu: 200m
|
||||
memory: 1024Mi
|
||||
cpu: 1
|
||||
memory: 2048Mi
|
||||
ports:
|
||||
- containerPort: 8140
|
||||
name: puppetserver
|
||||
|
||||
@@ -24,13 +24,13 @@ spec:
|
||||
type: Resource
|
||||
behavior:
|
||||
scaleUp:
|
||||
stabilizationWindowSeconds: 60
|
||||
stabilizationWindowSeconds: 30
|
||||
policies:
|
||||
- type: Percent
|
||||
value: 50
|
||||
value: 75
|
||||
periodSeconds: 15
|
||||
scaleDown:
|
||||
stabilizationWindowSeconds: 300
|
||||
stabilizationWindowSeconds: 600
|
||||
policies:
|
||||
- type: Percent
|
||||
value: 25
|
||||
|
||||
Reference in New Issue
Block a user