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
|
imagePullPolicy: IfNotPresent
|
||||||
resources:
|
resources:
|
||||||
limits:
|
limits:
|
||||||
cpu: 2
|
cpu: 4
|
||||||
memory: 3072Mi
|
memory: 4096Mi
|
||||||
requests:
|
requests:
|
||||||
cpu: 200m
|
cpu: 1
|
||||||
memory: 1024Mi
|
memory: 2048Mi
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 8140
|
- containerPort: 8140
|
||||||
name: puppetserver
|
name: puppetserver
|
||||||
|
|||||||
@@ -24,13 +24,13 @@ spec:
|
|||||||
type: Resource
|
type: Resource
|
||||||
behavior:
|
behavior:
|
||||||
scaleUp:
|
scaleUp:
|
||||||
stabilizationWindowSeconds: 60
|
stabilizationWindowSeconds: 30
|
||||||
policies:
|
policies:
|
||||||
- type: Percent
|
- type: Percent
|
||||||
value: 50
|
value: 75
|
||||||
periodSeconds: 15
|
periodSeconds: 15
|
||||||
scaleDown:
|
scaleDown:
|
||||||
stabilizationWindowSeconds: 300
|
stabilizationWindowSeconds: 600
|
||||||
policies:
|
policies:
|
||||||
- type: Percent
|
- type: Percent
|
||||||
value: 25
|
value: 25
|
||||||
|
|||||||
Reference in New Issue
Block a user