Skip to content

Commit

Permalink
Reduce resource requests of istio ingress gateway and adapt autoscali…
Browse files Browse the repository at this point in the history
…ng accordingly. (gardener#9250)

* Reduce resource requests of istio ingress gateway and adapt autoscaling accordingly.

Due to the split of istio ingress gateways across zones in highly available seed setup,
its resource requests are slightly oversized except for very large active seed clusters.
To reduce the unnecessary resource waste this change reduces the resource requests to a
quarter (cpu) and half (memory) respectively. The general assumption is that due to its
priority the istio ingress gateway may be able to get additional cpu if available on
the node. With regards to memory, the limit is left in place with the same value and
again its priority may help not being out-of-memory killed.
As an additional measure with regards to memory, the autoscaling is extended to also
cover memory so that a scale-up can happen under memory pressure.
In addition to that, the scale-up/-down behaviour is now explicitly specified with a
fast scale-up and a slow scale-down.

* Adapt tests
  • Loading branch information
ScheererJ authored Feb 28, 2024
1 parent cfa94a7 commit f930e8e
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,22 @@ spec:
target:
averageUtilization: 80
type: Utilization
- type: Resource
resource:
name: memory
target:
averageUtilization: 80
type: Utilization
behavior:
scaleDown:
stabilizationWindowSeconds: 1800
policies:
- type: Pods
value: 1
periodSeconds: 1800
scaleUp:
stabilizationWindowSeconds: 60
policies:
- type: Pods
value: 1
periodSeconds: 60
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ spec:
timeoutSeconds: 1
resources:
requests:
cpu: 1000m
memory: 2Gi
cpu: 250m
memory: 1Gi
limits:
memory: 8Gi
env:
Expand Down
21 changes: 20 additions & 1 deletion pkg/component/istio/test_charts/ingress_autoscaler.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,23 @@ spec:
name: cpu
target:
averageUtilization: 80
type: Utilization
type: Utilization
- type: Resource
resource:
name: memory
target:
averageUtilization: 80
type: Utilization
behavior:
scaleDown:
stabilizationWindowSeconds: 1800
policies:
- type: Pods
value: 1
periodSeconds: 1800
scaleUp:
stabilizationWindowSeconds: 60
policies:
- type: Pods
value: 1
periodSeconds: 60
4 changes: 2 additions & 2 deletions pkg/component/istio/test_charts/ingress_deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ spec:
timeoutSeconds: 1
resources:
requests:
cpu: 1000m
memory: 2Gi
cpu: 250m
memory: 1Gi
limits:
memory: 8Gi
env:
Expand Down

0 comments on commit f930e8e

Please sign in to comment.