Skip to content

Commit ff33065

Browse files
committed
Update resource requests and limits for web, space, admin, live, api, worker, and beatworker deployments; adjust autoscaling settings to increase maxReplicas and target utilization percentages across all components.
1 parent 81c32b7 commit ff33065

File tree

9 files changed

+227
-211
lines changed

9 files changed

+227
-211
lines changed

charts/plane-ce/questions.yml

Lines changed: 135 additions & 119 deletions
Large diffs are not rendered by default.

charts/plane-ce/templates/workloads/admin.deployment.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,11 @@ spec:
4545
tty: true
4646
resources:
4747
requests:
48-
memory: {{ .Values.admin.memoryRequest | default "50Mi" | quote }}
49-
cpu: {{ .Values.admin.cpuRequest | default "50m" | quote }}
48+
cpu: {{ .Values.admin.cpuRequest | default "100m" | quote }}
49+
memory: {{ .Values.admin.memoryRequest | default "200Mi" | quote }}
5050
limits:
51-
memory: {{ .Values.admin.memoryLimit | default "1000Mi" | quote }}
5251
cpu: {{ .Values.admin.cpuLimit | default "500m" | quote}}
52+
memory: {{ .Values.admin.memoryLimit | default "1000Mi" | quote }}
5353
command:
5454
- node
5555
args:
@@ -74,7 +74,7 @@ spec:
7474
kind: Deployment
7575
name: {{ .Release.Name }}-admin-wl
7676
minReplicas: {{ .Values.admin.autoscaling.minReplicas | default 1 | quote }}
77-
maxReplicas: {{ .Values.admin.autoscaling.maxReplicas | default 3 | quote }}
77+
maxReplicas: {{ .Values.admin.autoscaling.maxReplicas | default 5 | quote }}
7878
{{- if or .Values.admin.autoscaling.targetCPUUtilizationPercentage .Values.admin.autoscaling.targetMemoryUtilizationPercentage }}
7979
metrics:
8080
{{- if .Values.admin.autoscaling.targetCPUUtilizationPercentage }}
@@ -83,15 +83,15 @@ spec:
8383
name: cpu
8484
target:
8585
type: Utilization
86-
averageUtilization: {{ .Values.admin.autoscaling.targetCPUUtilizationPercentage | default 80 | quote }}
86+
averageUtilization: {{ .Values.admin.autoscaling.targetCPUUtilizationPercentage | default 90 | quote }}
8787
{{- end }}
8888
{{- if .Values.admin.autoscaling.targetMemoryUtilizationPercentage }}
8989
- type: Resource
9090
resource:
9191
name: memory
9292
target:
9393
type: Utilization
94-
averageUtilization: {{ .Values.admin.autoscaling.targetMemoryUtilizationPercentage | default 70 | quote }}
94+
averageUtilization: {{ .Values.admin.autoscaling.targetMemoryUtilizationPercentage | default 90 | quote }}
9595
{{- end }}
9696
{{- end }}
9797
{{- end }}

charts/plane-ce/templates/workloads/api.deployment.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,11 @@ spec:
4646
tty: true
4747
resources:
4848
requests:
49-
memory: {{ .Values.api.memoryRequest | default "50Mi" | quote }}
50-
cpu: {{ .Values.api.cpuRequest | default "50m" | quote }}
49+
cpu: {{ .Values.api.cpuRequest | default "1000m" | quote }}
50+
memory: {{ .Values.api.memoryRequest | default "10000Mi" | quote }}
5151
limits:
52-
memory: {{ .Values.api.memoryLimit | default "1000Mi" | quote }}
53-
cpu: {{ .Values.api.cpuLimit | default "500m" | quote}}
52+
cpu: {{ .Values.api.cpuLimit | default "2000m" | quote}}
53+
memory: {{ .Values.api.memoryLimit | default "2000Mi" | quote }}
5454
command:
5555
- ./bin/docker-entrypoint-api.sh
5656
envFrom:
@@ -92,7 +92,7 @@ spec:
9292
kind: Deployment
9393
name: {{ .Release.Name }}-api-wl
9494
minReplicas: {{ .Values.api.autoscaling.minReplicas | default 1 | quote }}
95-
maxReplicas: {{ .Values.api.autoscaling.maxReplicas | default 3 | quote }}
95+
maxReplicas: {{ .Values.api.autoscaling.maxReplicas | default 5 | quote }}
9696
{{- if or .Values.api.autoscaling.targetCPUUtilizationPercentage .Values.api.autoscaling.targetMemoryUtilizationPercentage }}
9797
metrics:
9898
{{- if .Values.api.autoscaling.targetCPUUtilizationPercentage }}
@@ -101,15 +101,15 @@ spec:
101101
name: cpu
102102
target:
103103
type: Utilization
104-
averageUtilization: {{ .Values.api.autoscaling.targetCPUUtilizationPercentage | default 80 | quote }}
104+
averageUtilization: {{ .Values.api.autoscaling.targetCPUUtilizationPercentage | default 90 | quote }}
105105
{{- end }}
106106
{{- if .Values.api.autoscaling.targetMemoryUtilizationPercentage }}
107107
- type: Resource
108108
resource:
109109
name: memory
110110
target:
111111
type: Utilization
112-
averageUtilization: {{ .Values.api.autoscaling.targetMemoryUtilizationPercentage | default 70 | quote }}
112+
averageUtilization: {{ .Values.api.autoscaling.targetMemoryUtilizationPercentage | default 90 | quote }}
113113
{{- end }}
114114
{{- end }}
115115
{{- end }}

charts/plane-ce/templates/workloads/beat-worker.deployment.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,11 @@ spec:
2424
tty: true
2525
resources:
2626
requests:
27-
memory: {{ .Values.beatworker.memoryRequest | default "50Mi" | quote }}
28-
cpu: {{ .Values.beatworker.cpuRequest | default "50m" | quote }}
27+
cpu: {{ .Values.beatworker.cpuRequest | default "500m" | quote }}
28+
memory: {{ .Values.beatworker.memoryRequest | default "1000Mi" | quote }}
2929
limits:
30-
memory: {{ .Values.beatworker.memoryLimit | default "1000Mi" | quote }}
31-
cpu: {{ .Values.beatworker.cpuLimit | default "500m" | quote}}
30+
cpu: {{ .Values.beatworker.cpuLimit | default "1000m" | quote}}
31+
memory: {{ .Values.beatworker.memoryLimit | default "2000Mi" | quote }}
3232
command:
3333
- ./bin/docker-entrypoint-beat.sh
3434
envFrom:
@@ -61,7 +61,7 @@ spec:
6161
kind: Deployment
6262
name: {{ .Release.Name }}-beat-worker-wl
6363
minReplicas: {{ .Values.beatworker.autoscaling.minReplicas | default 1 | quote }}
64-
maxReplicas: {{ .Values.beatworker.autoscaling.maxReplicas | default 3 | quote }}
64+
maxReplicas: {{ .Values.beatworker.autoscaling.maxReplicas | default 5 | quote }}
6565
{{- if or .Values.beatworker.autoscaling.targetCPUUtilizationPercentage .Values.beatworker.autoscaling.targetMemoryUtilizationPercentage }}
6666
metrics:
6767
{{- if .Values.beatworker.autoscaling.targetCPUUtilizationPercentage }}
@@ -70,15 +70,15 @@ spec:
7070
name: cpu
7171
target:
7272
type: Utilization
73-
averageUtilization: {{ .Values.beatworker.autoscaling.targetCPUUtilizationPercentage | default 80 | quote }}
73+
averageUtilization: {{ .Values.beatworker.autoscaling.targetCPUUtilizationPercentage | default 90 | quote }}
7474
{{- end }}
7575
{{- if .Values.beatworker.autoscaling.targetMemoryUtilizationPercentage }}
7676
- type: Resource
7777
resource:
7878
name: memory
7979
target:
8080
type: Utilization
81-
averageUtilization: {{ .Values.beatworker.autoscaling.targetMemoryUtilizationPercentage | default 70 | quote }}
81+
averageUtilization: {{ .Values.beatworker.autoscaling.targetMemoryUtilizationPercentage | default 90 | quote }}
8282
{{- end }}
8383
{{- end }}
8484
{{- end }}

charts/plane-ce/templates/workloads/live.deployment.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,11 @@ spec:
4646
tty: true
4747
resources:
4848
requests:
49-
memory: {{ .Values.live.memoryRequest | default "50Mi" | quote }}
50-
cpu: {{ .Values.live.cpuRequest | default "50m" | quote }}
49+
cpu: {{ .Values.live.cpuRequest | default "500m" | quote }}
50+
memory: {{ .Values.live.memoryRequest | default "1000Mi" | quote }}
5151
limits:
52-
memory: {{ .Values.live.memoryLimit | default "1000Mi" | quote }}
53-
cpu: {{ .Values.live.cpuLimit | default "500m" | quote}}
52+
cpu: {{ .Values.live.cpuLimit | default "1000m" | quote}}
53+
memory: {{ .Values.live.memoryLimit | default "2000Mi" | quote }}
5454
command:
5555
- node
5656
args:
@@ -81,7 +81,7 @@ spec:
8181
kind: Deployment
8282
name: {{ .Release.Name }}-live-wl
8383
minReplicas: {{ .Values.live.autoscaling.minReplicas | default 1 | quote }}
84-
maxReplicas: {{ .Values.live.autoscaling.maxReplicas | default 3 | quote }}
84+
maxReplicas: {{ .Values.live.autoscaling.maxReplicas | default 5 | quote }}
8585
{{- if or .Values.live.autoscaling.targetCPUUtilizationPercentage .Values.live.autoscaling.targetMemoryUtilizationPercentage }}
8686
metrics:
8787
{{- if .Values.live.autoscaling.targetCPUUtilizationPercentage }}
@@ -90,15 +90,15 @@ spec:
9090
name: cpu
9191
target:
9292
type: Utilization
93-
averageUtilization: {{ .Values.live.autoscaling.targetCPUUtilizationPercentage | default 80 | quote }}
93+
averageUtilization: {{ .Values.live.autoscaling.targetCPUUtilizationPercentage | default 90 | quote }}
9494
{{- end }}
9595
{{- if .Values.live.autoscaling.targetMemoryUtilizationPercentage }}
9696
- type: Resource
9797
resource:
9898
name: memory
9999
target:
100100
type: Utilization
101-
averageUtilization: {{ .Values.live.autoscaling.targetMemoryUtilizationPercentage | default 70 | quote }}
101+
averageUtilization: {{ .Values.live.autoscaling.targetMemoryUtilizationPercentage | default 90 | quote }}
102102
{{- end }}
103103
{{- end }}
104104
{{- end }}

charts/plane-ce/templates/workloads/space.deployment.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,11 @@ spec:
4646
tty: true
4747
resources:
4848
requests:
49-
memory: {{ .Values.space.memoryRequest | default "50Mi" | quote }}
50-
cpu: {{ .Values.space.cpuRequest | default "50m" | quote }}
49+
cpu: {{ .Values.space.cpuRequest | default "100m" | quote }}
50+
memory: {{ .Values.space.memoryRequest | default "200Mi" | quote }}
5151
limits:
52-
memory: {{ .Values.space.memoryLimit | default "1000Mi" | quote }}
5352
cpu: {{ .Values.space.cpuLimit | default "500m" | quote}}
53+
memory: {{ .Values.space.memoryLimit | default "1000Mi" | quote }}
5454
command:
5555
- node
5656
args:
@@ -74,7 +74,7 @@ spec:
7474
kind: Deployment
7575
name: {{ .Release.Name }}-space-wl
7676
minReplicas: {{ .Values.space.autoscaling.minReplicas | default 1 | quote }}
77-
maxReplicas: {{ .Values.space.autoscaling.maxReplicas | default 3 | quote }}
77+
maxReplicas: {{ .Values.space.autoscaling.maxReplicas | default 5 | quote }}
7878
{{- if or .Values.space.autoscaling.targetCPUUtilizationPercentage .Values.space.autoscaling.targetMemoryUtilizationPercentage }}
7979
metrics:
8080
{{- if .Values.space.autoscaling.targetCPUUtilizationPercentage }}
@@ -83,15 +83,15 @@ spec:
8383
name: cpu
8484
target:
8585
type: Utilization
86-
averageUtilization: {{ .Values.space.autoscaling.targetCPUUtilizationPercentage | default 80 | quote }}
86+
averageUtilization: {{ .Values.space.autoscaling.targetCPUUtilizationPercentage | default 90 | quote }}
8787
{{- end }}
8888
{{- if .Values.space.autoscaling.targetMemoryUtilizationPercentage }}
8989
- type: Resource
9090
resource:
9191
name: memory
9292
target:
9393
type: Utilization
94-
averageUtilization: {{ .Values.space.autoscaling.targetMemoryUtilizationPercentage | default 70 | quote }}
94+
averageUtilization: {{ .Values.space.autoscaling.targetMemoryUtilizationPercentage | default 90 | quote }}
9595
{{- end }}
9696
{{- end }}
9797
{{- end }}

charts/plane-ce/templates/workloads/web.deployment.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,11 @@ spec:
4646
tty: true
4747
resources:
4848
requests:
49-
memory: {{ .Values.web.memoryRequest | default "50Mi" | quote }}
50-
cpu: {{ .Values.web.cpuRequest | default "50m" | quote }}
49+
cpu: {{ .Values.web.cpuRequest | default "100m" | quote }}
50+
memory: {{ .Values.web.memoryRequest | default "200Mi" | quote }}
5151
limits:
52-
memory: {{ .Values.web.memoryLimit | default "1000Mi" | quote }}
5352
cpu: {{ .Values.web.cpuLimit | default "500m" | quote}}
53+
memory: {{ .Values.web.memoryLimit | default "1000Mi" | quote }}
5454
command:
5555
- node
5656
args:
@@ -74,7 +74,7 @@ spec:
7474
kind: Deployment
7575
name: {{ .Release.Name }}-web-wl
7676
minReplicas: {{ .Values.web.autoscaling.minReplicas | default 1 | quote }}
77-
maxReplicas: {{ .Values.web.autoscaling.maxReplicas | default 3 | quote }}
77+
maxReplicas: {{ .Values.web.autoscaling.maxReplicas | default 5 | quote }}
7878
{{- if or .Values.web.autoscaling.targetCPUUtilizationPercentage .Values.web.autoscaling.targetMemoryUtilizationPercentage }}
7979
metrics:
8080
{{- if .Values.web.autoscaling.targetCPUUtilizationPercentage }}
@@ -83,15 +83,15 @@ spec:
8383
name: cpu
8484
target:
8585
type: Utilization
86-
averageUtilization: {{ .Values.web.autoscaling.targetCPUUtilizationPercentage | default 80 | quote }}
86+
averageUtilization: {{ .Values.web.autoscaling.targetCPUUtilizationPercentage | default 90 | quote }}
8787
{{- end }}
8888
{{- if .Values.web.autoscaling.targetMemoryUtilizationPercentage }}
8989
- type: Resource
9090
resource:
9191
name: memory
9292
target:
9393
type: Utilization
94-
averageUtilization: {{ .Values.web.autoscaling.targetMemoryUtilizationPercentage | default 70 | quote }}
94+
averageUtilization: {{ .Values.web.autoscaling.targetMemoryUtilizationPercentage | default 90 | quote }}
9595
{{- end }}
9696
{{- end }}
9797
{{- end }}

charts/plane-ce/templates/workloads/worker.deployment.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,11 @@ spec:
2424
tty: true
2525
resources:
2626
requests:
27-
memory: {{ .Values.worker.memoryRequest | default "50Mi" | quote }}
28-
cpu: {{ .Values.worker.cpuRequest | default "50m" | quote }}
27+
cpu: {{ .Values.worker.cpuRequest | default "500m" | quote }}
28+
memory: {{ .Values.worker.memoryRequest | default "2000Mi" | quote }}
2929
limits:
30-
memory: {{ .Values.worker.memoryLimit | default "1000Mi" | quote }}
31-
cpu: {{ .Values.worker.cpuLimit | default "500m" | quote}}
30+
cpu: {{ .Values.worker.cpuLimit | default "1000m" | quote}}
31+
memory: {{ .Values.worker.memoryLimit | default "4000Mi" | quote }}
3232
command:
3333
- ./bin/docker-entrypoint-worker.sh
3434
envFrom:
@@ -60,7 +60,7 @@ spec:
6060
kind: Deployment
6161
name: {{ .Release.Name }}-worker-wl
6262
minReplicas: {{ .Values.worker.autoscaling.minReplicas | default 1 | quote }}
63-
maxReplicas: {{ .Values.worker.autoscaling.maxReplicas | default 3 | quote }}
63+
maxReplicas: {{ .Values.worker.autoscaling.maxReplicas | default 5 | quote }}
6464
{{- if or .Values.worker.autoscaling.targetCPUUtilizationPercentage .Values.worker.autoscaling.targetMemoryUtilizationPercentage }}
6565
metrics:
6666
{{- if .Values.worker.autoscaling.targetCPUUtilizationPercentage }}
@@ -69,15 +69,15 @@ spec:
6969
name: cpu
7070
target:
7171
type: Utilization
72-
averageUtilization: {{ .Values.worker.autoscaling.targetCPUUtilizationPercentage | default 80 | quote }}
72+
averageUtilization: {{ .Values.worker.autoscaling.targetCPUUtilizationPercentage | default 90 | quote }}
7373
{{- end }}
7474
{{- if .Values.worker.autoscaling.targetMemoryUtilizationPercentage }}
7575
- type: Resource
7676
resource:
7777
name: memory
7878
target:
7979
type: Utilization
80-
averageUtilization: {{ .Values.worker.autoscaling.targetMemoryUtilizationPercentage | default 70 | quote }}
80+
averageUtilization: {{ .Values.worker.autoscaling.targetMemoryUtilizationPercentage | default 90 | quote }}
8181
{{- end }}
8282
{{- end }}
8383
{{- end }}

0 commit comments

Comments
 (0)